protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (!base.ProcessCmdKey(ref msg, keyData))
     {
         if (keyData.Equals(Keys.Escape))
         {
             BT_cancel.PerformClick();
             return(true);
         }
         else if (keyData.Equals(Keys.PageUp))
         {
             BT_insert.PerformClick();
             return(true);
         }
         else if (keyData.Equals(Keys.PageDown))
         {
             BT_delete.PerformClick();
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(true);
     }
 }
Beispiel #2
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (!base.ProcessCmdKey(ref msg, keyData))
     {
         if (keyData.Equals(Keys.F1))
         {
             Assistance AssiForm = new Assistance();
             AssiForm.Show();
             return(true);
         }
         else if (keyData.Equals(Keys.F3))
         {
             BT_search.PerformClick();
             return(true);
         }
         else if (keyData.Equals(Keys.F4))
         {
             BT_insert.PerformClick();
             return(true);
         }
         else if (keyData.Equals(Keys.F5))
         {
             BT_Delete.PerformClick();
             return(true);
         }
         else if (keyData.Equals(Keys.F6))
         {
             BT_read.PerformClick();
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(true);
     }
 }