OnRedone() protected method

protected OnRedone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
return void
Example #1
0
			public override void Redo (TextDocument doc)
			{
				foreach (UndoOperation operation in this.operations) {
					operation.Redo (doc);
					doc.OnRedone (new UndoOperationEventArgs (operation));
				}
				OnRedoDone ();
			}
Example #2
0
			public override void Redo (TextDocument doc)
			{
				doc.currentAtomicUndoOperationType.Push (operationType);
				foreach (UndoOperation operation in this.operations) {
					operation.Redo (doc);
					doc.OnRedone (new UndoOperationEventArgs (operation));
				}
				doc.currentAtomicUndoOperationType.Pop (); 
				OnRedoDone ();
			}
			public override void Redo (TextDocument doc, bool fireEvent = true)
			{
				doc.BeginAtomicUndo (operationType);
				try {
					foreach (UndoOperation operation in this.operations) {
						operation.Redo (doc, false);
						doc.OnRedone (new UndoOperationEventArgs (operation));
					}
				} finally {
					doc.EndAtomicUndo ();
				}
				if (fireEvent)
					OnRedoDone ();
			}