Exemple #1
0
 private void Main_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control == true && e.KeyCode == Keys.F)
     {
         button9.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.C)
     {
         button10.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.T)
     {
         button11.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.B)
     {
         button12.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.O)
     {
         button8.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.F1)
     {
         Support.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.F2)
     {
         TTNV.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.F3)
     {
         Updates.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.F4)
     {
         Addac.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.F5)
     {
         Pass.PerformClick();
     }
     if (e.Control == true && e.KeyCode == Keys.X)
     {
         Logout.PerformClick();
     }
 }