32 lines
938 B
C#
32 lines
938 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using RyzStudio.Windows.Forms;
|
|
|
|
namespace RokettoLaunch
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
var services = new ServiceCollection();
|
|
services.AddSingleton<IFileSessionManager, FileSessionManager>();
|
|
services.AddTransient<MainForm>();
|
|
services.AddTransient<LoadingForm>();
|
|
|
|
var provider = services.BuildServiceProvider();
|
|
|
|
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
//Application.Run(new MainForm());
|
|
|
|
Application.Run(provider.GetRequiredService<MainForm>());
|
|
}
|
|
}
|
|
}
|