static void Main(string[] args) { if (args.Length > 0) { CLI.Run(); } else { Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } }
private void btnConsole_Click(object sender, EventArgs e) => CLI.Run();