Beispiel #1
0
        private void txtNewValue_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Enter:
                AddNewValue();
                e.Handled = true;
                break;

            case Keys.Escape:
                needValidation = false;
                shape.HideEditor();
                e.Handled = true;
                break;

            case Keys.Tab:
                txtReturnType.Focus();
                e.Handled = true;
                break;
            }
        }
Beispiel #2
0
 protected override void HideEditor()
 {
     NeedValidation = false;
     shape.HideEditor();
 }