Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void debugBtn_Click(object sender, EventArgs e)
        {
            Form f = new PowerForm();

            f.Show();
        }