Пример #1
0
 /// <summary>
 /// This copy constructor makes a copy of the argument object.
 /// </summary>
 /// <param name="e"></param>
 public GoChangedEventArgs(GoChangedEventArgs e)
 {
     myIsBeforeChanging = e.IsBeforeChanging;
     myDocument         = e.Document;
     myHint             = e.Hint;
     mySubHint          = e.SubHint;
     myObject           = e.Object;
     myOldInt           = e.OldInt;
     myOldValue         = e.OldValue;
     myOldRect          = e.OldRect;
     myNewInt           = e.NewInt;
     myNewValue         = e.NewValue;
     myNewRect          = e.NewRect;
     if (myDocument != null)
     {
         myDocument.CopyOldValueForUndo(this);
         myDocument.CopyNewValueForRedo(this);
     }
 }