29 lines
845 B
C#
29 lines
845 B
C#
using CloudBuilder.CodeGenerator;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace WinFormsApp
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
var services = new ServiceCollection();
|
|
|
|
services.Initialize();
|
|
|
|
var serviceProvider = services.BuildServiceProvider();
|
|
|
|
MainFunctionView mainFunctionView = serviceProvider.GetRequiredKeyedService<MainFunctionView>(typeof(MainFunctionView).Name);
|
|
|
|
Application.Run(mainFunctionView);
|
|
}
|
|
}
|
|
} |