Пример #1
0
 public void RaiseSaveEvent(ControlDesignerEventArgs args)
 {
     if (CaptionEditor != null && Text != InitialText && SaveEvent == null)
     {
         RaiseUndoEvent(new ControlDesignerEventArgs {
             UndoState = new UndoControlState {
                 Element = (EditedObject as Component) ?? RealControl, Caption = InitialText, Operation = UndoOperation.Text
             }
         });
     }
     if (SaveEvent != null)
     {
         SaveEvent(this, args);
     }
 }