/// <summary> /// Raise the Save event. /// </summary> /// <param name="e"></param> protected virtual void OnSave(EditLabelSaveEventArgs e) { EditLabelSaveEventHandler SaveHandler = (EditLabelSaveEventHandler)Events[EventSaveKey]; if (SaveHandler != null) { SaveHandler(this, e); } }
public EditLabelSaveEventArgs SaveLabel(string value, bool updateAfterCallBack) { EditLabelSaveEventArgs e = new EditLabelSaveEventArgs(value); OnSave(e); if (!e.Cancel) { Text = e.Text; } if (updateAfterCallBack) { this.UpdateAfterCallBack = true; } return(e); }
/// <summary> /// Raise the Save event. /// </summary> /// <param name="e"></param> protected virtual void OnSave(EditLabelSaveEventArgs e) { EditLabelSaveEventHandler SaveHandler = (EditLabelSaveEventHandler)Events[EventSaveKey]; if (SaveHandler != null) SaveHandler(this, e); }
public EditLabelSaveEventArgs SaveLabel(string value, bool updateAfterCallBack) { EditLabelSaveEventArgs e = new EditLabelSaveEventArgs(value); OnSave(e); if (!e.Cancel) Text = e.Text; if (updateAfterCallBack) this.UpdateAfterCallBack = true; return e; }