private void spinElement_KeyUp(object sender, KeyEventArgs e) { BaseSpinEditorElement editorElement = this.EditorElement as BaseSpinEditorElement; if (editorElement == null || !editorElement.IsInValidState(true)) { return; } this.OnKeyUp(e); }
private void spinElement_KeyDown(object sender, KeyEventArgs e) { BaseSpinEditorElement editorElement = this.EditorElement as BaseSpinEditorElement; if (editorElement == null || !editorElement.IsInValidState(true)) { return; } this.selectionStart = editorElement.TextBoxItem.SelectionStart; this.selectionLength = editorElement.TextBoxItem.SelectionLength; this.OnKeyDown(e); }