Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="e"></param>
 protected override void OnKeyDown(KeyEventArgs e)
 {
     if ((!e.Handled && EditorContainsFocus) && base.Enabled)
     {
         for (int num1 = 0; num1 < Properties.Buttons.Count; num1++)
         {
             EditorButton button1             = Properties.Buttons[num1];
             EditorButtonObjectInfoArgs args1 = ViewInfo.ButtonInfoByButton(button1);
             if ((((args1 != null) && button1.Visible) && (button1.Enabled && button1.Shortcut.IsExist)) && (button1.Shortcut.Key == e.KeyData))
             {
                 e.Handled = true;
                 OnClickButton(args1);
             }
         }
     }
     base.OnKeyDown(e);
 }