private static void Main() { #if NETCOREAPP Application.SetHighDpiMode(HighDpiMode.SystemAware); #endif #if NETFRAMEWORK InitUtil.InitializeStubs(); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); }
private static void Main() { #if NETCOREAPP Application.SetHighDpiMode(HighDpiMode.SystemAware); #endif #if NETFRAMEWORK InitUtil.InitializeStubs(); #endif var cmd = Environment.GetCommandLineArgs(); var cfg = Array.Find(cmd, z => z.EndsWith(".json")); if (cfg != null) { ConfigPath = cmd[0]; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); }