/// <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);
        }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 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;
 }