Northwoods.Go Assembly > Northwoods.Go Namespace > GoUndoManager Class : EndTransaction Method |
If this call stops a top-level transaction, a value of false for commit just clears the information in the CurrentEdit. If commit is true for a top-level transaction, we mark the CurrentEdit complete, call CommitCompoundEdit, and add the resulting GoUndoManagerCompoundEdit to the list of compound edits that this undo manager is recording.
Committing a transaction when there have been some undos without corresponding redos will throw away the compound edits holding changes that happened after the current state, before adding this new compound edit to the undo manager's list of edits.
This method raises a GoDocument.Changed event for each of this undo manager's Documents, with a hint of GoDocument.FinishedTransaction, and with a GoChangedEventArgs.GoChangedEventArgs.Object that is the GoUndoManagerCompoundEdit that has been added to the list of AllEdits. Furthermore the GoChangedEventArgs.GoChangedEventArgs.OldValue will be the tname, and the GoChangedEventArgs.NewValue will be the pname. Similarly, if the transaction is aborted, either because commit is false or because there is no CurrentEdit to commit, all of the Documents get a GoDocument.AbortedTransaction Changed event. The values passed in the GoChangedEventArgs may all be null, however.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2