OnUndone() protected method

protected OnUndone ( UndoOperationEventArgs e ) : void
e UndoOperationEventArgs
return void
コード例 #1
0
			public override void Undo (TextDocument doc)
			{
				doc.currentAtomicUndoOperationType.Push (operationType);
				for (int i = operations.Count - 1; i >= 0; i--) {
					operations [i].Undo (doc);
					doc.OnUndone (new UndoOperationEventArgs (operations[i]));
				}
				doc.currentAtomicUndoOperationType.Pop (); 
				OnUndoDone ();
			}
コード例 #2
0
			public override void Undo (TextDocument doc, bool fireEvent = true)
			{
				doc.BeginAtomicUndo (operationType);
				try {
					for (int i = operations.Count - 1; i >= 0; i--) {
						operations [i].Undo (doc, false);
						doc.OnUndone (new UndoOperationEventArgs (operations [i]));
					}
				} finally {
					doc.EndAtomicUndo ();
				}
				if (fireEvent)
					OnUndoDone ();
			}
コード例 #3
0
ファイル: TextDocument.cs プロジェクト: IBBoard/monodevelop
			public override void Undo (TextDocument doc)
			{
				for (int i = operations.Count - 1; i >= 0; i--) {
					operations [i].Undo (doc);
					doc.OnUndone (new UndoOperationEventArgs (operations[i]));
				}
				OnUndoDone ();
			}
コード例 #4
0
			public override void Undo (TextDocument doc, bool fireEvent = true)
			{
				doc.currentAtomicUndoOperationType.Push (operationType);
				doc.atomicUndoLevel++;
				try {
					for (int i = operations.Count - 1; i >= 0; i--) {
						operations [i].Undo (doc, false);
						doc.OnUndone (new UndoOperationEventArgs (operations [i]));
					}
				} finally {
					doc.atomicUndoLevel--;
					doc.currentAtomicUndoOperationType.Pop ();
				}
				if (fireEvent)
					OnUndoDone ();
			}