using System; using System.Windows.Forms; using DataImporterTool.Dialogs; using DataImporterTool.Importer; using Microsoft.Extensions.DependencyInjection; namespace DataImporterTool { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var serviceProvider = new ServiceCollection() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() .AddSingleton() .BuildServiceProvider(); var mainFormPresenter = serviceProvider.GetService(); var form = mainFormPresenter.View as Form; Application.Run(form); } } }