Ejemplo n.º 1
0
 /// <summary>
 /// Re-perform the document change after an <see cref="M:Northwoods.Go.GoChangedEventArgs.Undo" />
 /// by calling <see cref="M:Northwoods.Go.GoDocument.ChangeValue(Northwoods.Go.GoChangedEventArgs,System.Boolean)" />.
 /// </summary>
 /// <remarks>
 /// <see cref="M:Northwoods.Go.GoChangedEventArgs.CanRedo" /> must be true for this method to call <see cref="M:Northwoods.Go.GoDocument.ChangeValue(Northwoods.Go.GoChangedEventArgs,System.Boolean)" />.
 /// </remarks>
 public void Redo()
 {
     if (CanRedo())
     {
         GoDocument document = Document;
         document.Initializing = true;
         document.ChangeValue(this, undo: false);
         document.Initializing = false;
     }
 }