Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / BookmarkUndoUnit.cs / 1305376 / BookmarkUndoUnit.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Collections.Generic; using System.Linq; sealed class BookmarkUndoUnit : UndoUnit { public BookmarkUndoUnit(EditingContext context) : base(context) { this.DoList = new List(); this.RedoList = new List (); } internal List DoList { get; private set; } internal List RedoList { get; private set; } public override void Redo() { this.DoList = this.RedoList.Reverse ().ToList(); this.DoList.ForEach(unit => unit.Redo()); this.RedoList.Clear(); } public override void Undo() { this.RedoList = this.DoList.Reverse ().ToList(); this.RedoList.ForEach(unit => unit.Undo()); this.DoList.Clear(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System.Collections.Generic; using System.Linq; sealed class BookmarkUndoUnit : UndoUnit { public BookmarkUndoUnit(EditingContext context) : base(context) { this.DoList = new List (); this.RedoList = new List (); } internal List DoList { get; private set; } internal List RedoList { get; private set; } public override void Redo() { this.DoList = this.RedoList.Reverse ().ToList(); this.DoList.ForEach(unit => unit.Redo()); this.RedoList.Clear(); } public override void Undo() { this.RedoList = this.DoList.Reverse ().ToList(); this.RedoList.ForEach(unit => unit.Undo()); this.DoList.Clear(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompositeActivityValidator.cs
- CompilerErrorCollection.cs
- ListViewSortEventArgs.cs
- PriorityQueue.cs
- GenerateHelper.cs
- Literal.cs
- URLIdentityPermission.cs
- ToolStripItemTextRenderEventArgs.cs
- TypeToken.cs
- storepermissionattribute.cs
- DrawingGroupDrawingContext.cs
- XmlLinkedNode.cs
- DispatcherProcessingDisabled.cs
- WebConfigurationFileMap.cs
- ManualWorkflowSchedulerService.cs
- ExternalCalls.cs
- ClientTargetSection.cs
- BaseCAMarshaler.cs
- DesignerDeviceConfig.cs
- XmlDocumentFragment.cs
- DataView.cs
- HtmlEncodedRawTextWriter.cs
- PermissionSetEnumerator.cs
- CommonProperties.cs
- HtmlTable.cs
- PermissionSetTriple.cs
- WaveHeader.cs
- EnvironmentPermission.cs
- TypeCodeDomSerializer.cs
- EUCJPEncoding.cs
- StandardOleMarshalObject.cs
- UIElement3DAutomationPeer.cs
- SecureStringHasher.cs
- AudioDeviceOut.cs
- SoapAttributes.cs
- Renderer.cs
- Stack.cs
- BoundColumn.cs
- MemberDomainMap.cs
- ObjectSelectorEditor.cs
- CallSiteHelpers.cs
- LinkUtilities.cs
- MetadataCache.cs
- DataGridViewElement.cs
- KeyValuePair.cs
- DbModificationClause.cs
- XmlDictionary.cs
- CustomMenuItemCollection.cs
- UnSafeCharBuffer.cs
- ImageFormatConverter.cs
- DynamicRenderer.cs
- ContextInformation.cs
- NamespaceInfo.cs
- MDIClient.cs
- SecurityKeyIdentifier.cs
- ConnectionStringsExpressionBuilder.cs
- OptimizedTemplateContentHelper.cs
- CubicEase.cs
- LayoutDump.cs
- PreloadedPackages.cs
- SimpleColumnProvider.cs
- RadioButtonPopupAdapter.cs
- ReplyChannelBinder.cs
- BitmapFrameDecode.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ArglessEventHandlerProxy.cs
- AlternateView.cs
- HttpRawResponse.cs
- RemotingConfigParser.cs
- ToolboxComponentsCreatingEventArgs.cs
- StreamReader.cs
- LogPolicy.cs
- TextEditorDragDrop.cs
- WebContext.cs
- ClassHandlersStore.cs
- ReflectionUtil.cs
- SplitterPanel.cs
- _NetRes.cs
- TypeSystemProvider.cs
- CustomAttributeFormatException.cs
- FileUtil.cs
- UnsafeNativeMethods.cs
- MethodExpr.cs
- AdRotator.cs
- NavigationWindow.cs
- RightsManagementLicense.cs
- CopyNamespacesAction.cs
- WebBrowserBase.cs
- WindowsListViewScroll.cs
- SoapMessage.cs
- XappLauncher.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RangeValidator.cs
- ReferenceService.cs
- AutomationIdentifierGuids.cs
- RowUpdatedEventArgs.cs
- PropertyAccessVisitor.cs
- ActivationServices.cs
- ObjectListShowCommandsEventArgs.cs
- HttpConfigurationContext.cs