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
- SecuritySessionFilter.cs
- UTF7Encoding.cs
- DrawingAttributes.cs
- TreeNodeSelectionProcessor.cs
- ExpressionPrefixAttribute.cs
- TypeToken.cs
- BrushValueSerializer.cs
- CompositeDispatchFormatter.cs
- SafeHandles.cs
- SoapMessage.cs
- BrowserInteropHelper.cs
- DictionaryCustomTypeDescriptor.cs
- TransportBindingElementImporter.cs
- TransactionScope.cs
- ValueExpressions.cs
- TableLayoutPanel.cs
- GroupByQueryOperator.cs
- CodeAttributeArgument.cs
- SecurityListenerSettingsLifetimeManager.cs
- XmlConvert.cs
- XmlDataImplementation.cs
- SymmetricAlgorithm.cs
- FileCodeGroup.cs
- BitConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- TextTreeRootTextBlock.cs
- OdbcErrorCollection.cs
- exports.cs
- HighlightComponent.cs
- MultiView.cs
- DataControlCommands.cs
- EntityViewGenerator.cs
- SafeArchiveContext.cs
- NativeWindow.cs
- ProcessMonitor.cs
- Reference.cs
- MsmqBindingMonitor.cs
- Rotation3DKeyFrameCollection.cs
- StateBag.cs
- LinkGrep.cs
- ServiceModelPerformanceCounters.cs
- HttpModuleActionCollection.cs
- DataStreamFromComStream.cs
- PkcsUtils.cs
- AlphabeticalEnumConverter.cs
- SmtpCommands.cs
- DelimitedListTraceListener.cs
- PagedDataSource.cs
- EdmValidator.cs
- RelationshipEndMember.cs
- TypedElement.cs
- DateBoldEvent.cs
- PropertyMapper.cs
- ExtensibleClassFactory.cs
- StylusCaptureWithinProperty.cs
- RegexRunnerFactory.cs
- ZipIOExtraField.cs
- WhereQueryOperator.cs
- ProcessModelSection.cs
- NumericUpDownAcceleration.cs
- PolicyManager.cs
- EntityDataSourceUtil.cs
- PolyBezierSegment.cs
- recordstate.cs
- ServiceModelSecurityTokenRequirement.cs
- Debug.cs
- OpCopier.cs
- SQLInt32Storage.cs
- RegexGroup.cs
- PerformanceCounterScope.cs
- RegexMatchCollection.cs
- TreeViewEvent.cs
- RemoteWebConfigurationHostStream.cs
- BitStack.cs
- AuthenticateEventArgs.cs
- RequestQueryParser.cs
- BaseInfoTable.cs
- Track.cs
- InkCollectionBehavior.cs
- XmlSchemaDatatype.cs
- UriExt.cs
- RewritingValidator.cs
- ObjectStateManagerMetadata.cs
- GeneralTransform.cs
- SystemResourceKey.cs
- DateTimeParse.cs
- Sequence.cs
- PathFigure.cs
- PeerName.cs
- InfoCardSymmetricAlgorithm.cs
- ToolStripSettings.cs
- WindowsRebar.cs
- LineSegment.cs
- TrustManagerMoreInformation.cs
- RoleManagerEventArgs.cs
- Frame.cs
- ListViewItemEventArgs.cs
- NodeLabelEditEvent.cs
- ClipboardProcessor.cs
- EFDataModelProvider.cs