/// <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);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }