Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / UndoUnit.cs / 1305376 / UndoUnit.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation { using System; using System.Collections.Generic; using System.Text; using System.Activities.Presentation.View; using System.Activities.Presentation.Model; public abstract class UndoUnit { EditingContext context; ModelItem designerRoot; public string Description { get; set; } public abstract void Redo(); public abstract void Undo(); protected UndoUnit(EditingContext context) { if (context == null) { throw FxTrace.Exception.AsError(new ArgumentNullException("context")); } this.context = context; } protected void SaveGlobalState() { DesignerView designerView = context.Services.GetService(); if (designerView != null && designerView.RootDesigner != null) { designerRoot = ((WorkflowViewElement)designerView.RootDesigner).ModelItem; } } protected void ApplyGlobalState() { DesignerView designerView = context.Services.GetService (); if (designerView != null && designerView.RootDesigner != null) { ModelItem currentDesignerRoot = ((WorkflowViewElement)designerView.RootDesigner).ModelItem; if (currentDesignerRoot != designerRoot) { designerView.MakeRootDesigner(designerRoot); } } } } } // 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
- AssemblyHash.cs
- StringOutput.cs
- MouseButtonEventArgs.cs
- AddInDeploymentState.cs
- PropertyInformationCollection.cs
- QueryResults.cs
- ScalarConstant.cs
- RightsManagementEncryptionTransform.cs
- WebPartAddingEventArgs.cs
- FtpRequestCacheValidator.cs
- LogConverter.cs
- FormViewDeleteEventArgs.cs
- XmlSerializerSection.cs
- ResolveRequestResponseAsyncResult.cs
- HtmlButton.cs
- CreateRefExpr.cs
- Guid.cs
- SqlTypeConverter.cs
- SolidBrush.cs
- WebServiceData.cs
- InterleavedZipPartStream.cs
- ElementAction.cs
- XmlEncoding.cs
- TemplateBindingExtensionConverter.cs
- FixedSchema.cs
- FillRuleValidation.cs
- SecureStringHasher.cs
- ActivityContext.cs
- LinkedResource.cs
- PropertyMapper.cs
- SuppressMergeCheckAttribute.cs
- SystemIPGlobalProperties.cs
- ToolboxItemWrapper.cs
- RenderingBiasValidation.cs
- DuplicateWaitObjectException.cs
- RoutedUICommand.cs
- ScalarType.cs
- BordersPage.cs
- Input.cs
- LazyLoadBehavior.cs
- CodeNamespaceImportCollection.cs
- ScrollContentPresenter.cs
- Propagator.JoinPropagator.cs
- MimeMultiPart.cs
- CustomCategoryAttribute.cs
- ToolboxItemCollection.cs
- followingsibling.cs
- Queue.cs
- ScrollBar.cs
- SerializationEventsCache.cs
- XmlHierarchicalDataSourceView.cs
- AutoScrollHelper.cs
- PageBreakRecord.cs
- WSHttpBindingBase.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- RuleProcessor.cs
- Helpers.cs
- Simplifier.cs
- SystemBrushes.cs
- ObjectComplexPropertyMapping.cs
- SimpleType.cs
- TickBar.cs
- DefaultTextStoreTextComposition.cs
- MetadataPropertyvalue.cs
- ParallelTimeline.cs
- ToolBarTray.cs
- XmlReturnWriter.cs
- PopupEventArgs.cs
- Span.cs
- GroupBox.cs
- Timer.cs
- GridViewUpdatedEventArgs.cs
- QuaternionKeyFrameCollection.cs
- FormatConvertedBitmap.cs
- Win32.cs
- Int16Converter.cs
- MemberPath.cs
- CheckBoxList.cs
- ServiceInstallComponent.cs
- Visual3DCollection.cs
- PrimarySelectionAdorner.cs
- DrawingVisualDrawingContext.cs
- TerminateSequenceResponse.cs
- XmlMemberMapping.cs
- DataGridCellClipboardEventArgs.cs
- NotifyInputEventArgs.cs
- TabControl.cs
- GetLedgerEntryForRecipientRequest.cs
- AsnEncodedData.cs
- MimeWriter.cs
- ContextBase.cs
- TemplateGroupCollection.cs
- LookupNode.cs
- CqlQuery.cs
- PersianCalendar.cs
- InputReport.cs
- BindingMAnagerBase.cs
- SafeBitVector32.cs
- RuntimeArgumentHandle.cs
- MenuRendererStandards.cs