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
- WebRequest.cs
- CodeObject.cs
- StrongName.cs
- UserControl.cs
- UnmanagedMemoryStreamWrapper.cs
- DurableInstanceContextProvider.cs
- Type.cs
- MethodToken.cs
- XmlDataCollection.cs
- Walker.cs
- SqlAggregateChecker.cs
- TypeHelpers.cs
- TabPage.cs
- LocatorManager.cs
- DocumentOrderComparer.cs
- SharedUtils.cs
- TextMarkerSource.cs
- HttpCacheVaryByContentEncodings.cs
- ColumnWidthChangingEvent.cs
- ObjectRef.cs
- ItemsControlAutomationPeer.cs
- Psha1DerivedKeyGenerator.cs
- TraceSwitch.cs
- Composition.cs
- RadioButton.cs
- Visual.cs
- SecurityIdentifierConverter.cs
- MailSettingsSection.cs
- QueryParameter.cs
- SQLSingle.cs
- SessionPageStateSection.cs
- State.cs
- OleDbConnection.cs
- OleDbCommandBuilder.cs
- SoapSchemaImporter.cs
- UpDownBaseDesigner.cs
- DynamicResourceExtensionConverter.cs
- URLMembershipCondition.cs
- TransactionInterop.cs
- BrowserInteropHelper.cs
- OptimalBreakSession.cs
- CodeStatementCollection.cs
- SevenBitStream.cs
- Types.cs
- TextServicesContext.cs
- MainMenu.cs
- unitconverter.cs
- SourceChangedEventArgs.cs
- PublisherMembershipCondition.cs
- Size3DConverter.cs
- OrderedHashRepartitionEnumerator.cs
- CodeCastExpression.cs
- CacheMode.cs
- WebServicesSection.cs
- HtmlToClrEventProxy.cs
- DefaultProxySection.cs
- RangeValidator.cs
- AssemblyContextControlItem.cs
- EntityParameterCollection.cs
- NameSpaceExtractor.cs
- TextEditor.cs
- TextServicesCompartment.cs
- MenuItem.cs
- QueryOperatorEnumerator.cs
- MultiSelector.cs
- CultureSpecificStringDictionary.cs
- EmptyQuery.cs
- EntityDataSourceChangingEventArgs.cs
- VoiceInfo.cs
- AlgoModule.cs
- FontCacheLogic.cs
- SqlTriggerAttribute.cs
- SchemaNames.cs
- LineMetrics.cs
- WebPartDisplayModeEventArgs.cs
- Exception.cs
- ContextCorrelationInitializer.cs
- RemoteDebugger.cs
- Visual3D.cs
- OdbcInfoMessageEvent.cs
- SqlUserDefinedTypeAttribute.cs
- JoinElimination.cs
- ConstantExpression.cs
- IDQuery.cs
- RelationshipConstraintValidator.cs
- TypeConstant.cs
- CurrentTimeZone.cs
- TextRunCache.cs
- CompatibleIComparer.cs
- FlowDocumentScrollViewer.cs
- _ListenerAsyncResult.cs
- PersonalizationStateInfo.cs
- ThreadStaticAttribute.cs
- TreeNodeEventArgs.cs
- SoapAttributes.cs
- EventLogPermissionHolder.cs
- XMLSyntaxException.cs
- DbParameterHelper.cs
- ForeignKeyFactory.cs
- ExpressionVisitor.cs