refactoring

This commit is contained in:
MaxKarme 2023-02-14 08:06:33 +03:00
parent 8e209b8c4a
commit 63650d46bf

View File

@ -23,9 +23,7 @@ namespace Pizzeria
ConfigureServices(services); ConfigureServices(services);
_serviceProvider = services.BuildServiceProvider(); _serviceProvider = services.BuildServiceProvider();
FormMain test = _serviceProvider.GetService<FormMain>(); Application.Run(_serviceProvider.GetService<FormMain>());
//Application.Run(_serviceProvider.GetService<FormMain>());
Application.Run(test);
} }
private static void ConfigureServices(IServiceCollection services) private static void ConfigureServices(IServiceCollection services)