mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 11:20:05 +02:00
Json importer ready
This commit is contained in:
1 parent
ccc5c768b3
commit
26e469d69d
15 files changed
+971
-9
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using DataImporterTool.Dialogs;
|
||||
using DataImporterTool.Importer;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace DataImporterTool
|
||||
{
|
||||
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 serviceProvider = new ServiceCollection()
|
||||
.AddSingleton<JsonFilesImporter>()
|
||||
.AddSingleton<IDialogService, DialogService>()
|
||||
.AddSingleton<IMainFormView, MainForm>()
|
||||
.AddSingleton<MainFormPresenter>()
|
||||
.BuildServiceProvider();
|
||||
|
||||
var mainFormPresenter = serviceProvider.GetService<MainFormPresenter>();
|
||||
|
||||
var form = mainFormPresenter.View as Form;
|
||||
|
||||
Application.Run(form);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user