static void Main(string[] args) { if (Environment.OSVersion.Version.Major >= 6) { SetProcessDPIAware(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form f = new PowerForm(); for (int i = 0; i < args.Length; i++) { if (args[i] == "--settings") // Se viene rilevata l'opzione --power { f = new SettingsForm(); // lancia la finestra } } Application.Run(f); }
private void debugBtn_Click(object sender, EventArgs e) { Form f = new PowerForm(); f.Show(); }