Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        // Special keypresses
        private void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            UserActivity();

            // CTRL+SHIFT+C to change colors
            if ((e.KeyCode == Keys.C) && e.Control && e.Shift && !e.Alt)
            {
                ColorsForm f = new ColorsForm();
                f.ShowDialog(this);
                f.Dispose();
                General.Settings.SaveSettings();
                e.Handled = true;
            }

            // CTRL+SHIFT+X closes the program
            if ((e.KeyCode == Keys.X) && e.Control && e.Shift && !e.Alt)
            {
                Application.Exit();
            }
        }
Esempio n. 2
0
        // Special keypresses
        private void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            UserActivity();

            // CTRL+SHIFT+C to change colors
            if((e.KeyCode == Keys.C) && e.Control && e.Shift && !e.Alt)
            {
                ColorsForm f = new ColorsForm();
                f.ShowDialog(this);
                f.Dispose();
                General.Settings.SaveSettings();
                e.Handled = true;
            }

            // CTRL+SHIFT+X closes the program
            if((e.KeyCode == Keys.X) && e.Control && e.Shift && !e.Alt)
            {
                Application.Exit();
            }
        }