27 lines
768 B
C#
27 lines
768 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Marro.VRChatYouTubeWorkaround;
|
|
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.SetHighDpiMode(HighDpiMode.SystemAware);
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
var services = new ServiceCollection();
|
|
ConfigureServices(services);
|
|
using ServiceProvider serviceProvider = services.BuildServiceProvider();
|
|
|
|
var form = serviceProvider.GetRequiredService<MainForm>();
|
|
Application.Run(form);
|
|
}
|
|
|
|
private static void ConfigureServices(ServiceCollection services)
|
|
{
|
|
services.AddSingleton<MainForm>();
|
|
}
|
|
} |