void textBox_MouseWheel(object sender, MouseEventArgs e) { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(e); popupEditorNotificationData.context = PopupEditorNotificationData.Context.MouseWheel; this.owner.NotifyOwner(popupEditorNotificationData); }
void textBox_DoubleClick(object sender, EventArgs e) { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(); popupEditorNotificationData.context = PopupEditorNotificationData.Context.TextBoxDoubleClick; this.owner.NotifyOwner(popupEditorNotificationData); }
void textBox_TextChanged(object sender, EventArgs e) { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(); popupEditorNotificationData.context = PopupEditorNotificationData.Context.TextChanged; this.owner.NotifyOwner(popupEditorNotificationData); }
private void HandleKeyUpKeyDown(KeyEventArgs e) { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(e); popupEditorNotificationData.context = PopupEditorNotificationData.Context.KeyUpKeyDownPress; this.owner.NotifyOwner(popupEditorNotificationData); }
private void HandleF4Down() { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(); popupEditorNotificationData.context = PopupEditorNotificationData.Context.F4Press; this.owner.NotifyOwner(popupEditorNotificationData); }
private void HandleEsc() { PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(); popupEditorNotificationData.context = PopupEditorNotificationData.Context.Esc; this.owner.NotifyOwner(popupEditorNotificationData); }
void textBox_KeyDown(object sender, KeyEventArgs e) { PopupEditorNotificationData notificationData = new PopupEditorNotificationData(e); notificationData.context = PopupEditorNotificationData.Context.KeyDown; this.owner.NotifyOwner(notificationData); if (e.Handled) { return; } if (this.owner.InternalKeyDown != null) { this.owner.InternalKeyDown(sender, e); } if (e.KeyCode == Keys.F4) { this.HandleF4Down(); } else if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down) { this.HandleKeyUpKeyDown(e); } else if (e.KeyCode == Keys.Escape) { this.HandleEsc(); e.Handled = true; } }
void TextBoxItem_LostFocus(object sender, EventArgs e) { this.onTextBoxCaptureChanged = false; PopupEditorNotificationData popupEditorNotificationData = new PopupEditorNotificationData(); popupEditorNotificationData.context = PopupEditorNotificationData.Context.MouseEvent; this.owner.NotifyOwner(popupEditorNotificationData); }
protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); if (this.dropDownStyle == RadDropDownStyle.DropDown) { return; } PopupEditorNotificationData notificationData = new PopupEditorNotificationData(e); notificationData.context = PopupEditorNotificationData.Context.MouseUpOnEditorElement; this.owner.NotifyOwner(notificationData); }
void listElement_ItemsChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) { if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Reset) { if (this.listElement.Items.Count == 0)//reset & no items { PopupEditorNotificationData dataReset = new PopupEditorNotificationData(); dataReset.context = PopupEditorNotificationData.Context.ItemsClear; this.NotifyOwner(dataReset); } return; } PopupEditorNotificationData data = new PopupEditorNotificationData(); data.context = PopupEditorNotificationData.Context.ItemsChanged; this.NotifyOwner(data); }
void textBox_KeyUp(object sender, KeyEventArgs e) { PopupEditorNotificationData notificationData = new PopupEditorNotificationData(e); notificationData.context = PopupEditorNotificationData.Context.KeyUp; this.owner.NotifyOwner(notificationData); if (e.Handled) { return; } if (this.owner.InternalKeyUp != null) { this.owner.InternalKeyUp(sender, e); } if (this.dropDownStyle == RadDropDownStyle.DropDown) { base.OnKeyUp(e); } }
public virtual void NotifyOwner(PopupEditorNotificationData notificationData) { }