Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Behaviors / CompensatableTransactionScopeActivityDesigner.cs / 1305376 / CompensatableTransactionScopeActivityDesigner.cs
namespace System.Workflow.ComponentModel.Design
{
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Workflow.ComponentModel.Design;
#region Class CompensatableTransactionScopeActivityDesigner
internal sealed class CompensatableTransactionScopeActivityDesigner : SequenceDesigner
{
public override ReadOnlyCollection Views
{
get
{
List views = new List();
foreach (DesignerView view in base.Views)
{
// disable the exceptions view and cancellation handler view
Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type;
if (activityType != null &&
!typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) &&
!typeof(FaultHandlersActivity).IsAssignableFrom(activityType))
{
views.Add(view);
}
}
return new ReadOnlyCollection(views);
}
}
}
#endregion
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Workflow.ComponentModel.Design
{
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Workflow.ComponentModel.Design;
#region Class CompensatableTransactionScopeActivityDesigner
internal sealed class CompensatableTransactionScopeActivityDesigner : SequenceDesigner
{
public override ReadOnlyCollection Views
{
get
{
List views = new List();
foreach (DesignerView view in base.Views)
{
// disable the exceptions view and cancellation handler view
Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type;
if (activityType != null &&
!typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) &&
!typeof(FaultHandlersActivity).IsAssignableFrom(activityType))
{
views.Add(view);
}
}
return new ReadOnlyCollection(views);
}
}
}
#endregion
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Typography.cs
- StylusPointPropertyInfoDefaults.cs
- CompilationLock.cs
- SingleAnimationBase.cs
- ListControl.cs
- EntryIndex.cs
- NumericExpr.cs
- columnmapkeybuilder.cs
- DetailsViewRowCollection.cs
- BaseValidatorDesigner.cs
- BooleanSwitch.cs
- FormViewModeEventArgs.cs
- XPathQilFactory.cs
- SQLSingleStorage.cs
- Repeater.cs
- CollaborationHelperFunctions.cs
- CorrelationManager.cs
- HttpsTransportElement.cs
- PropertyDescriptorGridEntry.cs
- ExternalFile.cs
- NavigationPropertyEmitter.cs
- ActiveDocumentEvent.cs
- AddInController.cs
- Subtree.cs
- FieldNameLookup.cs
- HttpBufferlessInputStream.cs
- IntellisenseTextBox.cs
- SymbolEqualComparer.cs
- PageStatePersister.cs
- DataBoundControlHelper.cs
- loginstatus.cs
- SqlDataReaderSmi.cs
- SubMenuStyle.cs
- TextBlock.cs
- PixelShader.cs
- InlineObject.cs
- CultureTable.cs
- DSACryptoServiceProvider.cs
- SoapHeaders.cs
- QilDataSource.cs
- MappingException.cs
- MasterPage.cs
- complextypematerializer.cs
- Process.cs
- WebPartZoneDesigner.cs
- DriveInfo.cs
- COM2ColorConverter.cs
- HwndSource.cs
- Facet.cs
- WindowInteropHelper.cs
- XmlSchemaObject.cs
- MeasureItemEvent.cs
- RotateTransform.cs
- InteropTrackingRecord.cs
- CompressEmulationStream.cs
- Mappings.cs
- AdornerLayer.cs
- _AuthenticationState.cs
- LayoutEditorPart.cs
- DataGridViewCellStateChangedEventArgs.cs
- Activator.cs
- Splitter.cs
- RuntimeCompatibilityAttribute.cs
- TypeInfo.cs
- MethodCallExpression.cs
- RootBrowserWindow.cs
- HeaderCollection.cs
- MultitargetingHelpers.cs
- XmlTypeMapping.cs
- SnapshotChangeTrackingStrategy.cs
- AnnotationComponentChooser.cs
- Column.cs
- ContentOperations.cs
- DataSourceControlBuilder.cs
- StringValueConverter.cs
- PrimarySelectionGlyph.cs
- Binding.cs
- HyperLink.cs
- CompositeDataBoundControl.cs
- LoadedOrUnloadedOperation.cs
- MatrixCamera.cs
- DefaultPrintController.cs
- SmtpNetworkElement.cs
- Source.cs
- SqlColumnizer.cs
- DataGridViewEditingControlShowingEventArgs.cs
- NumericUpDownAcceleration.cs
- Pool.cs
- activationcontext.cs
- Invariant.cs
- SubMenuStyleCollection.cs
- Serializer.cs
- DataGridViewCellStyleEditor.cs
- ImageButton.cs
- PenContext.cs
- XamlTreeBuilderBamlRecordWriter.cs
- FileClassifier.cs
- RegistrationServices.cs
- Duration.cs
- FtpWebRequest.cs