示例#1
0
 void mForIncrementStep_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == System.Windows.Forms.Keys.Tab)
     {
         ForInitializer.SetFocus();
         e.Handled = true;
     }
     if (e.KeyCode == System.Windows.Forms.Keys.Back)
     {
         ForCondition.SetCursorToTheEnd();
         e.Handled = true;
     }
 }
示例#2
0
 void mForCondition_KeyDown(Block block, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyCode == System.Windows.Forms.Keys.Tab)
     {
         ForIncrementStep.SetFocus();
         e.Handled = true;
     }
     if (e.KeyCode == System.Windows.Forms.Keys.Back)
     {
         ForInitializer.SetCursorToTheEnd();
         e.Handled = true;
     }
     if (e.KeyCode == System.Windows.Forms.Keys.Delete && ForCondition.MyTextBox.CaretIsAtEnd)
     {
         ForIncrementStep.SetCursorToTheBeginning();
         e.Handled = true;
     }
 }