Example #1
0
 protected override bool ProcessDialogKey(Keys keyData)
 {
     if (keyData == Keys.Escape && this.Enabled)
     {
         this.Close();
     }
     else if (keyData == (Keys.Control | Keys.Q) && !this.Name.ToLower().Equals("queries"))
     {
         Queries q = new Queries();
         q.ShowDialog();
     }
     else if (keyData == (Keys.Control | Keys.D) && !this.Name.ToLower().Equals("debugform"))
     {
         DebugForm d = new DebugForm();
         d.ShowDialog();
     }
     else if (keyData == (Keys.Control | Keys.U) && !this.Name.ToLower().Equals("Convertor") && !this.Name.ToLower().Equals("debugform"))
     {
         Calculator c = new Calculator();
         c.Show();
     }
     return(base.ProcessDialogKey(keyData));
 }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            DebugForm form = new DebugForm();

            form.ShowDialog();
        }
Example #3
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            DebugForm debug = new DebugForm();

            debug.ShowDialog();
        }