399 references to Activity
System.Workflow.Activities (121)
Designers\ConditionedDesigner.cs (1)
25
if (!(parentActivityDesigner.
Activity
is IfElseActivity))
Designers\EventDrivenDesigner.cs (3)
26
if (!(Type.GetType("System.Workflow.Activities.ListenActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.
Activity
.GetType())) &&
27
!(parentActivityDesigner.
Activity
is EventHandlersActivity) &&
28
!(Type.GetType("System.Workflow.Activities.StateActivity," + AssemblyRef.ActivitiesAssemblyRef).IsAssignableFrom(parentActivityDesigner.
Activity
.GetType())))
Designers\EventHandlersDesigner.cs (2)
41
if (parentActivityDesigner.
Activity
!= null)
43
if (!(parentActivityDesigner.
Activity
is EventHandlingScopeActivity))
Designers\EventSinkActivityDesigner.cs (7)
27
HandleExternalEventActivity eventSink =
Activity
as HandleExternalEventActivity;
65
if (
Activity
.Site != null)
69
new ExternalDataExchangeInterfaceTypeFilterProvider(
Activity
.Site).CanFilterType(interfaceType, true);
72
PropertyDescriptorUtils.SetPropertyValue(
Activity
.Site, TypeDescriptor.GetProperties(
Activity
)["EventName"],
Activity
, String.Empty);
74
IExtendedUIService extUIService = (IExtendedUIService)
Activity
.Site.GetService(typeof(IExtendedUIService));
Designers\InvokeMethodActivityDesigner.cs (7)
25
CallExternalMethodActivity invokeMethod =
Activity
as CallExternalMethodActivity;
64
if (
Activity
.Site != null)
68
new ExternalDataExchangeInterfaceTypeFilterProvider(
Activity
.Site).CanFilterType(interfaceType, true);
71
PropertyDescriptorUtils.SetPropertyValue(
Activity
.Site, TypeDescriptor.GetProperties(
Activity
)["MethodName"],
Activity
, String.Empty);
73
IExtendedUIService extUIService = (IExtendedUIService)
Activity
.Site.GetService(typeof(IExtendedUIService));
Designers\InvokeWebServiceDesigner.cs (14)
76
properties["URL"] = new WebServiceUrlPropertyDescriptor(
Activity
.Site, TypeDescriptor.CreateProperty(this.GetType(), "URL", typeof(string), DesignOnlyAttribute.Yes, MergablePropertyAttribute.No));
84
InvokeWebServiceActivity invokeWebService =
Activity
as InvokeWebServiceActivity;
98
InvokeWebServiceActivity invokeWebServiceDecl =
Activity
as InvokeWebServiceActivity;
99
IExtendedUIService extUIService = (IExtendedUIService)
Activity
.Site.GetService(typeof(IExtendedUIService));
115
IExtendedUIService extUIService = (IExtendedUIService)
Activity
.Site.GetService(typeof(IExtendedUIService));
121
IDesignerHost host =
Activity
.Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
126
PropertyDescriptorUtils.SetPropertyValue(
Activity
.Site, TypeDescriptor.GetProperties(
Activity
)["ProxyClass"],
Activity
, string.IsNullOrEmpty(this.url) ? null : extUIService.GetProxyClassForUrl(new Uri(this.url)));
147
if (
Activity
.Site != null)
150
PropertyDescriptorUtils.SetPropertyValue(
Activity
.Site, TypeDescriptor.GetProperties(
Activity
)["MethodName"],
Activity
, String.Empty);
152
IExtendedUIService extUIService = (IExtendedUIService)
Activity
.Site.GetService(typeof(IExtendedUIService));
Designers\PolicyDesigner.cs (1)
40
PolicyActivity activity = (PolicyActivity)this.
Activity
;
Designers\ServiceDesigner.cs (4)
66
if (hostedDesigner.
Activity
is FaultHandlersActivity)
71
else if (hostedDesigner.
Activity
is EventHandlersActivity)
76
else if (hostedDesigner.
Activity
is CompensationHandlerActivity)
81
else if (hostedDesigner.
Activity
is CancellationHandlerActivity)
Designers\SetStateDesigner.cs (2)
70
SetStateActivity setState = this.
Activity
as SetStateActivity;
115
CompositeActivity parentActivity = parentActivityDesigner.
Activity
as CompositeActivity;
Designers\StateDesigner.cs (61)
127
TypeDescriptor.Refresh(
Activity
);
164
return this.ActiveDesigner.
Activity
;
167
return this.DesignersParser.Ordered[0].
Activity
;
181
return this.ActiveDesigner.
Activity
;
184
return this.DesignersParser.Ordered[this.DesignersParser.Ordered.Count - 1].
Activity
;
281
text = this.
Activity
.GetType().Name;
295
StateActivity state = this.
Activity
as StateActivity;
351
if (!eventDrivenDesigner.
Activity
.Enabled)
369
if (!stateInitializationDesigner.
Activity
.Enabled)
387
if (!stateFinalizationDesigner.
Activity
.Enabled)
642
StateActivity state = (StateActivity)this.
Activity
;
696
return (this.
Activity
.Site != null) &&
697
StateMachineHelpers.IsRootState((StateActivity)this.
Activity
);
722
StateActivity rootState = StateMachineHelpers.GetRootState((StateActivity)this.
Activity
);
773
StateActivity state = (StateActivity)this.
Activity
;
845
StateActivity state = (StateActivity)this.
Activity
;
873
CompositeActivity parentActivity = parentActivityDesigner.
Activity
as CompositeActivity;
939
return ordered[indexOf + 1].
Activity
;
946
return ordered[indexOf - 1].
Activity
;
960
return this.DesignersParser.StateDesigners[0].
Activity
;
965
return ordered[indexOf - 1].
Activity
;
970
return ordered[indexOf + 1].
Activity
;
978
return ordered[indexOf - 1].
Activity
;
983
return ordered[indexOf + 1].
Activity
;
1076
StateActivity state = (StateActivity)stateDesigner.
Activity
;
1102
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, leftConnectionIndex, (CompositeActivity)layout.ActivityDesigner.
Activity
, DesignerEdges.Left));
1109
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, rightConnectionIndex, (CompositeActivity)layout.ActivityDesigner.
Activity
, DesignerEdges.Right));
1170
setState.TargetStateName = target.AssociatedDesigner.
Activity
.QualifiedName;
1177
connector.TargetStateName = target.AssociatedDesigner.
Activity
.QualifiedName;
1219
if (!stateDesignerConnector.Target.AssociatedDesigner.
Activity
.QualifiedName.Equals(stateDesignerConnector.TargetStateName))
1221
StateActivity rootState = (StateActivity)this.RootStateDesigner.
Activity
;
1226
StateActivity targetState = (StateActivity)stateDesignerConnector.Target.AssociatedDesigner.
Activity
;
1236
StateActivity rootState = (StateActivity)this.RootStateDesigner.
Activity
;
1352
listChangeArgs.RemovedItems.Contains(this.ActiveDesigner.
Activity
))
1669
StateActivity rootState = (StateActivity)this.
Activity
;
1796
selectionService.SetSelectedComponents(new object[] { this.
Activity
}, SelectionTypes.Primary);
1823
this.DesignerLayouts[stateInitializationDesigner.
Activity
] = layout;
1831
this.DesignerLayouts[eventDrivenDesigner.
Activity
] = layout;
1838
this.DesignerLayouts[stateFinalizationDesigner.
Activity
] = layout;
1857
StateActivity state = (StateActivity)this.
Activity
;
1891
StateActivity state = (StateActivity)this.
Activity
;
1954
CompositeActivity compositeActivity = this.
Activity
as CompositeActivity;
1998
StateActivity state = (StateActivity)this.
Activity
;
2017
StateActivity state = (StateActivity)this.
Activity
;
2035
StateActivity state = (StateActivity)this.
Activity
;
2056
StateActivity state = (StateActivity)this.
Activity
;
2070
StateActivity state = (StateActivity)this.
Activity
;
2086
StateActivity state = (StateActivity)this.
Activity
;
2111
StateActivity state = (StateActivity)this.
Activity
;
2115
this.ActiveDesigner.
Activity
!= selection)
2124
if (this.
Activity
== this.SelectionService.PrimarySelection)
2139
activeDesignerName = designer.
Activity
.QualifiedName;
2140
if (this.HasActiveDesigner && (this.ActiveDesigner.
Activity
.QualifiedName == activeDesignerName))
2198
if (activityDesigner.
Activity
.QualifiedName == activeDesignerName)
2217
PropertyDescriptor activeDesignerProperty = GetPropertyDescriptor(stateDesigner.
Activity
, ActiveDesignerNamePropertyName);
2219
activeDesignerProperty.SetValue(stateDesigner.
Activity
, null);
2221
activeDesignerProperty.SetValue(stateDesigner.
Activity
, activeDesigner.
Activity
.QualifiedName);
2236
Activity activity = designer.
Activity
;
2268
image = ActivityToolboxItem.GetToolboxImage(designer.
Activity
.GetType());
2346
activeDesignerName = activeDesigner.
Activity
.QualifiedName;
Designers\StateDesigner.Helpers.cs (1)
63
if (StateMachineHelpers.IsLeafState((StateActivity)designer.
Activity
))
Designers\StateDesigner.Layouts.cs (3)
425
return this.ActivityDesigner.
Activity
.Name;
1000
StateActivity state = (StateActivity)this.ActivityDesigner.
Activity
;
1208
StateActivity state = (StateActivity)this.StateDesigner.
Activity
;
Designers\StateDesigner.TransitionInfo.cs (1)
117
stateDesignerConnector.Target.AssociatedDesigner.
Activity
.QualifiedName != stateDesignerConnector.TargetStateName)
Designers\StateFinalizationDesigner.cs (1)
26
if (!(parentActivityDesigner.
Activity
is StateActivity))
Designers\StateInitializationDesigner.cs (1)
26
if (!(parentActivityDesigner.
Activity
is StateActivity))
Designers\StateMachineDesignerPaint.cs (1)
427
if (designer == GetSafeRootDesigner(designer.
Activity
.Site) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null)
Designers\TaskDesigner.cs (1)
27
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
Designers\WebServiceReceiveDesigner.cs (8)
30
WebServiceInputActivity webServiceReceive = this.
Activity
as WebServiceInputActivity;
34
properties["InterfaceType"] = new WebServiceInterfacePropertyDescriptor(
Activity
.Site, properties["InterfaceType"] as PropertyDescriptor);
46
if (this.
Activity
.Site != null)
50
new InterfaceTypeFilterProvider(
Activity
.Site).CanFilterType(interfaceType, true);
53
PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(
Activity
)["MethodName"];
55
propertyDescriptor.SetValue(
Activity
, String.Empty);
68
foreach (Activity succeedingActivity in WebServiceActivityHelpers.GetSucceedingActivities(this.
Activity
))
70
if (succeedingActivity is WebServiceOutputActivity && ((WebServiceOutputActivity)(succeedingActivity)).InputActivityName == this.
Activity
.QualifiedName)
Designers\WebServiceResponseDesigner.cs (1)
32
WebServiceOutputActivity webServiceResponse = this.
Activity
as WebServiceOutputActivity;
EventHandlingScope.cs (1)
280
foreach (Activity child in ((EventHandlingScopeActivity)this.
Activity
).Activities)
System.Workflow.ComponentModel (255)
AuthoringOM\Behaviors\CompensateDesigner.cs (1)
24
Activity parentActivity = parentActivityDesigner.
Activity
;
AuthoringOM\Behaviors\ExceptionHandlerDesigner.cs (1)
74
if (!(parentActivityDesigner.
Activity
is FaultHandlersActivity))
AuthoringOM\Design\ActivityDesigner.cs (88)
122
else if (
Activity
!= null &&
Activity
.Parent != null)
123
parentDesigner = ActivityDesigner.GetDesigner(
Activity
.Parent) as CompositeActivityDesigner;
136
return (selectionService != null && selectionService.GetComponentSelected(
Activity
));
148
return (selectionService != null && selectionService.PrimarySelection ==
Activity
);
187
if (Helpers.IsActivityLocked(
Activity
))
197
IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(
Activity
.Site) as IWorkflowRootDesigner;
324
isRootDesigner = (designerHost.RootComponent ==
Activity
);
358
if (this.
Activity
.Parent != null)
431
Activity activity =
Activity
;
444
ValidationManager validationManager = new ValidationManager(
Activity
.Site, false);
447
Activity rootActivity = Helpers.GetRootActivity(this.
Activity
);
499
bool isNestedInComment = ActivityDesigner.IsCommentedActivity(
Activity
);
505
Activity
.Enabled && !isNestedInComment && !debugMode &&
510
if (!
Activity
.Enabled && !isNestedInComment)
514
if (Helpers.IsActivityLocked(
Activity
))
623
return ((
Activity
!= null) ?
Activity
.Name : null);
658
return new ActivityRootLayout(
Activity
.Site);
687
if (
Activity
== null)
692
designerImage = ActivityToolboxItem.GetToolboxImage(
Activity
.GetType());
725
if (
Activity
.Site != null)
727
foreach (PropertyDescriptor propertyDescriptor in PropertyDescriptorFilter.GetPropertiesForEvents(
Activity
.Site,
Activity
))
741
if (!Helpers.IsActivityLocked(
Activity
))
743
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(
Activity
, new Attribute[] { new BrowsableAttribute(true) });
762
if (
Activity
.Parent == null)
764
title =
Activity
.GetType().Name;
768
string activityName = (
Activity
.Name.Length > MaximumIdentifierLength) ?
Activity
.Name.Substring(0, MaximumIdentifierLength) + "..." :
Activity
.Name;
769
title = DR.GetString(DR.InfoTipTitle,
Activity
.GetType().Name, activityName);
779
string tipText = (!String.IsNullOrEmpty(
Activity
.Description)) ?
Activity
.Description : ActivityDesigner.GetActivityDescription(
Activity
.GetType());
796
IDictionary<string, string> rules = DesignerHelpers.GetDeclarativeRules(
Activity
);
848
foreach (Activity containedActivity in ((CompositeActivity)parentDesigner.
Activity
).Activities)
856
int index = activities.IndexOf(
Activity
as Activity);
862
moveBranchVerb.Visible = (parentDesigner is ParallelActivityDesigner || parentDesigner is ActivityPreviewDesigner && !Helpers.IsAlternateFlowActivity(
Activity
));
972
parentView.EnsureVisible(
Activity
);
1053
if (
Activity
.Site == null)
1062
GlyphManager glyphManager = (
Activity
!= null &&
Activity
.Site != null) ? GetService(typeof(IDesignerGlyphProviderService)) as GlyphManager : null;
1158
if (designerHost != null && InvokingDesigner == null &&
Activity
== designerHost.RootComponent)
1203
DefaultEventAttribute defaultEventAttribute = TypeDescriptor.GetAttributes(
Activity
)[typeof(DefaultEventAttribute)] as DefaultEventAttribute;
1207
ActivityBindPropertyDescriptor defaultPropEvent = TypeDescriptor.GetProperties(
Activity
)[defaultEventAttribute.Name] as ActivityBindPropertyDescriptor;
1210
object value = defaultPropEvent.GetValue(
Activity
);
1219
string handler = defaultPropEvent.RealPropertyDescriptor.GetValue(
Activity
) as string;
1221
handler = DesignerHelpers.CreateUniqueMethodName(
Activity
, eventDesc.Name, eventDesc.EventType);
1223
defaultPropEvent.SetValue(
Activity
, handler);
1224
eventBindingService.ShowCode(
Activity
, eventDesc);
1288
if (eppa != null && eppa.Provider != null && !eppa.Provider.CanExtend(
Activity
))
1295
PropertyDescriptorFilter.FilterProperties(
Activity
.Site,
Activity
, properties);
1558
selectionService.SetSelectedComponents(new object[] {
Activity
}, SelectionTypes.Replace);
1638
WorkflowView workflowView = new WorkflowView(
Activity
.Site as IServiceProvider);
1648
if (
Activity
!= null &&
Activity
.Site != null)
1796
this.Text =
Activity
.Name;
2044
Activity activity =
Activity
;
2060
activity = parentDesigner.
Activity
;
2076
Activity contextActivity = Helpers.GetRootActivity(
Activity
);
2085
Type rtType = PropertyDescriptorUtils.GetBaseType(propertyDescriptor,
Activity
,
Activity
.Site);
2088
object handler = propertyDescriptor.GetValue(
Activity
);
2090
handler = DesignerHelpers.CreateUniqueMethodName(
Activity
, propertyDescriptor.Name, rtType);
2091
propertyDescriptor.SetValue(
Activity
, handler);
2104
eventBindingService.ShowCode(
Activity
, eventDescriptor);
2137
ActivityBind bind = propertyDescriptor.GetValue(
Activity
) as ActivityBind;
2141
CustomProperty newCustomProperty = CustomProperty.CreateCustomProperty(
Activity
.Site, DesignerHelpers.GenerateUniqueIdentifier(
Activity
.Site,
Activity
.Name + "_" + propertyDescriptor.Name, customPropertyNames.ToArray()), propertyDescriptor,
Activity
);
2149
promotedProperties.Add(propertyDescriptor, new ActivityBind(ActivityBind.GetRelativePathExpression(Helpers.GetRootActivity(
Activity
),
Activity
), newCustomProperty.Name));
2156
promotedProperty.SetValue(
Activity
, promotedProperties[promotedProperty]);
2176
object handler = propertyDescriptor.GetValue(
Activity
);
2197
ActivityBind bind = propertyDescriptor.GetValue(
Activity
) as ActivityBind;
2231
this.Text =
Activity
.Name;
2267
selectionService.SetSelectedComponents(new object[] {
Activity
}, SelectionTypes.Replace);
2269
DesignerHelpers.RefreshDesignerActions(
Activity
.Site);
2385
if (this.workflowView == null && surface != null && designerHost != null && designerHost.RootComponent ==
Activity
)
2478
IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(
Activity
.Site) as IWorkflowRootDesigner;
2485
else if (rootDesigner.InvokingDesigner != null && rootDesigner.InvokingDesigner.
Activity
!= null)
2487
rootDesigner = ActivityDesigner.GetSafeRootDesigner(rootDesigner.InvokingDesigner.
Activity
.Site) as IWorkflowRootDesigner;
2531
compositeActivity = hitInfo.AssociatedDesigner.
Activity
as CompositeActivity;
2545
Activity[] activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(
Activity
.Site, toolboxItem, false);
2554
activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(
Activity
.Site, toolboxItem, true);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (12)
47
if (activityDesigner.
Activity
== null)
73
return DR.GetString(DR.ActivityDesignerAccessibleDescription, this.activityDesigner.
Activity
.GetType().Name);
81
return DR.GetString(DR.ActivityDesignerAccessibleHelp, this.activityDesigner.
Activity
.GetType().Name);
89
Activity activity = this.activityDesigner.
Activity
as Activity;
152
selectionService.SetSelectedComponents(new object[] { this.activityDesigner.
Activity
}, SelectionTypes.Replace);
182
ActivityDesigner activityDesigner = ActivityDesigner.GetDesigner(compositeDesigner.GetNextSelectableObject(this.activityDesigner.
Activity
, navigate) as Activity);
197
selectionService.SetSelectedComponents(new object[] { this.activityDesigner.
Activity
}, SelectionTypes.Replace);
199
selectionService.SetSelectedComponents(new object[] { this.activityDesigner.
Activity
}, SelectionTypes.Add);
201
selectionService.SetSelectedComponents(new object[] { this.activityDesigner.
Activity
}, SelectionTypes.Remove);
210
if (this.ActivityDesigner.
Activity
!= null && this.ActivityDesigner.
Activity
.Site != null)
211
return this.ActivityDesigner.
Activity
.Site.GetService(serviceType);
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (3)
26
if (activityDesigner.
Activity
!= null && activityDesigner.
Activity
.Parent == null && writer != null)
75
CompositeActivity compositeActivity = parentDesigner.
Activity
as CompositeActivity;
AuthoringOM\Design\ActivityPreviewDesigner.cs (8)
93
TypeDescriptor.Refresh(
Activity
);
184
return PreviewedDesigner.
Activity
;
186
return ContainedDesigners[0].
Activity
;
205
return PreviewedDesigner.
Activity
;
209
return ContainedDesigners[ContainedDesigners.Count - 1].
Activity
;
424
return (this.previewStrip.ActiveItem != null && this.previewStrip.ActiveItem.UserData[DesignerUserDataKeys.Activity] == containedDesigner.
Activity
);
445
if (item.UserData[DesignerUserDataKeys.Activity] == containedDesigner.
Activity
)
481
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
AuthoringOM\Design\CommandSet.cs (3)
528
(this.workflowView.RootDesigner != null && this.workflowView.RootDesigner.
Activity
== activity))
959
if (rootDesigner.
Activity
is CompositeActivity)
960
activities.AddRange(Helpers.GetNestedActivities(rootDesigner.
Activity
as CompositeActivity));
AuthoringOM\Design\CompositeActivityDesigner.cs (26)
73
if (!(
Activity
is CompositeActivity))
79
if (Helpers.IsCustomActivity(
Activity
as CompositeActivity))
135
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
392
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
428
if (compositeActivityDesigner.
Activity
== null ||
429
compositeActivityDesigner.
Activity
.Site == null ||
430
!(compositeActivityDesigner.
Activity
is CompositeActivity))
439
ISite site = compositeActivityDesigner.
Activity
.Site;
740
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
786
designerToInsert = ActivityDesigner.CreateDesigner(
Activity
.Site, activity);
815
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
835
WorkflowDesignerLoader.AddActivityToDesigner(
Activity
.Site, activity);
845
ExtenderHelpers.FilterDependencyProperties(this.
Activity
.Site, walkerEventArgs.CurrentActivity);
895
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
975
ExtenderHelpers.FilterDependencyProperties(this.
Activity
.Site, walkerEventArgs.CurrentActivity);
1014
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
1036
WorkflowDesignerLoader.RemoveActivityFromDesigner(
Activity
.Site, activity);
1188
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
1324
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
1383
selectedObject = parentDesigner.
Activity
;
1416
nextSelectedObject = parentDesigner.
Activity
;
1432
selectedObject = parentDesigner.
Activity
;
1447
selectedObject = parentDesigner.
Activity
;
1477
if (
Activity
!= e.Component && designer != null && designer.IsLocked)
1478
DesignerHelpers.MakePropertiesReadOnly(e.Component.Site, designer.
Activity
);
1517
Activity activity = activityDesigner.
Activity
as Activity;
AuthoringOM\Design\Connector.cs (7)
432
Point[] newSegments = ActivityDesignerConnectorRouter.Route(Source.AssociatedDesigner.
Activity
.Site, Source, Target, ExcludedRoutingRectangles);
506
if (this.parentDesigner != null && this.parentDesigner.
Activity
!= null && this.parentDesigner.
Activity
.Site != null)
507
service = this.parentDesigner.
Activity
.Site.GetService(serviceType);
620
activityName = this.source.AssociatedDesigner.
Activity
.QualifiedName;
674
activityName = this.target.AssociatedDesigner.
Activity
.QualifiedName;
809
this.serviceProvider = this.editedConnector.Source.AssociatedDesigner.
Activity
.Site;
AuthoringOM\Design\DesignerHelpers.cs (4)
563
if (designer == ActivityDesigner.GetSafeRootDesigner(designer.
Activity
.Site) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null)
1212
activity = (hitInfo != null && hitInfo.AssociatedDesigner != null) ? hitInfo.AssociatedDesigner.
Activity
: null;
1251
nextSelectableActivity = parentDesigner.
Activity
;
1538
IMenuCommandService menuCommandService = designer.
Activity
.Site.GetService(typeof(IMenuCommandService)) as IMenuCommandService;
AuthoringOM\Design\DesignerInterfaces.cs (2)
654
return this.activityDesigner.
Activity
;
680
CompositeActivity compositeActivity = this.activityDesigner.
Activity
as CompositeActivity;
AuthoringOM\Design\DesignerWidgets.cs (17)
2517
if (this.items.Count == 0 && this.parentDesigner.
Activity
!= null)
2899
if (this.parentDesigner != null && parentDesigner.
Activity
.Site != null)
2901
WorkflowView workflowView = parentDesigner.
Activity
.Site.GetService(typeof(WorkflowView)) as WorkflowView;
2951
WorkflowView workflowView = this.itemStrip.parentDesigner.
Activity
.Site.GetService(typeof(WorkflowView)) as WorkflowView;
2985
description = DR.GetString(DR.ActivityDesignerAccessibleDescription, activityDesigner.
Activity
.GetType().Name);
3009
help = DR.GetString(DR.ActivityDesignerAccessibleHelp, activityDesigner.
Activity
.GetType().Name);
3034
Activity activity = activityDesigner.
Activity
;
3096
selectionService.SetSelectedComponents(new object[] { activityDesigner.
Activity
}, SelectionTypes.Replace);
3143
selectionService.SetSelectedComponents(new object[] { activityDesigner.
Activity
}, SelectionTypes.Replace);
3145
selectionService.SetSelectedComponents(new object[] { activityDesigner.
Activity
}, SelectionTypes.Add);
3147
selectionService.SetSelectedComponents(new object[] { activityDesigner.
Activity
}, SelectionTypes.Remove);
3174
if (this.itemStrip.parentDesigner.
Activity
!= null || this.itemStrip.parentDesigner.
Activity
.Site != null)
3175
return this.itemStrip.parentDesigner.
Activity
.Site.GetService(serviceType);
3206
this.serviceProvider = this.parentDesigner.
Activity
.Site;
3516
CompositeActivity compositeActivity = (this.parentDesigner != null) ? this.parentDesigner.
Activity
as CompositeActivity : null;
3520
IComponent component = (PreviewDesigner != null) ? PreviewDesigner.
Activity
: null;
AuthoringOM\Design\FreeFormDesigner.cs (30)
223
return (childdesigners.Count > 0) ? childdesigners[0].
Activity
: null;
232
return (childdesigners.Count > 0) ? childdesigners[childdesigners.Count - 1].
Activity
: null;
243
if (
Activity
!= null && ((IComponent)
Activity
).Site != null && !(ParentDesigner is FreeformActivityDesigner))
388
return new WorkflowRootLayout(
Activity
.Site);
437
if ((
Activity
!= source.AssociatedDesigner.
Activity
&& !Helpers.IsChildActivity(
Activity
as CompositeActivity, source.AssociatedDesigner.
Activity
)) ||
438
(
Activity
!= target.AssociatedDesigner.
Activity
&& !Helpers.IsChildActivity(
Activity
as CompositeActivity, target.AssociatedDesigner.
Activity
)))
555
dragDropManager.DraggedActivities.Contains(hitInfo.AssociatedDesigner.
Activity
) &&
558
if (
Activity
== hitInfo.AssociatedDesigner.
Activity
)
632
nextObject = ((ActivityDesigner)activityDesigners[(index > 0) ? index - 1 : activityDesigners.Count - 1]).
Activity
;
634
nextObject = ((ActivityDesigner)activityDesigners[(index < activityDesigners.Count - 1) ? index + 1 : 0]).
Activity
;
874
if (activity.Site == null || activity.Parent !=
Activity
)
883
CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, ((CompositeActivity)
Activity
).Activities.Count), activitiesToInsert.AsReadOnly(), SR.GetString(SR.DragDropActivities));
894
Point location = (newActivities.Contains(designerToMove.
Activity
)) ? dropPoint : movedLocations[i];
1041
if (designer == null || designer.
Activity
== null || designer.
Activity
.Site == null)
1048
sizeProperty.SetValue(designer.
Activity
, bounds.Size);
1054
locationProperty.SetValue(designer.
Activity
, bounds.Location);
1058
WorkflowView workflowView = designer.
Activity
.Site.GetService(typeof(WorkflowView)) as WorkflowView;
1074
if (connectorContainer != null &&
Activity
!= null &&
Activity
.Site != null)
1198
parentDesigner.MoveActivities(new ConnectorHitTestInfo(this, HitTestLocations.Designer, moveIndex), new List<Activity>(new Activity[] { childDesigner.
Activity
}).AsReadOnly());
1244
TypeDescriptor.Refresh(
Activity
);
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (4)
22
if (designer.
Activity
!= null && designer.
Activity
.Site != null && this.connectionPoint != null)
24
WorkflowView workflowView = designer.
Activity
.Site.GetService(typeof(WorkflowView)) as WorkflowView;
27
ConnectionManager connectionManager = designer.
Activity
.Site.GetService(typeof(ConnectionManager)) as ConnectionManager;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
768
CompositeActivity dropTargetComponent = dropTargetDesigner.
Activity
as CompositeActivity;
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
218
selectableComponents.Add(activityDesigner.
Activity
);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
104
showMoveCursor |= (MessageHitTestContext != null && MessageHitTestContext.AssociatedDesigner != null && ActivityDesigner.GetParentDesigner(MessageHitTestContext.AssociatedDesigner.
Activity
) is FreeformActivityDesigner && (MessageHitTestContext.HitLocation & HitTestLocations.ActionArea) == 0);
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
39
selectedObject = parentView.RootDesigner.
Activity
;
245
selectionService.SetSelectedComponents(new object[] { parentDesigner.
Activity
}, SelectionTypes.Replace);
AuthoringOM\Design\ParallelActivityDesigner.cs (5)
65
firstComponent = ContainedDesigners[0].
Activity
;
81
object firstComponent = (ContainedDesigners.Count > 0) ? ContainedDesigners[0].
Activity
: null;
140
nextObject = ((ActivityDesigner)containedDesigners[(index > 0) ? index - 1 : containedDesigners.Count - 1]).
Activity
;
142
nextObject = ((ActivityDesigner)containedDesigners[(index < containedDesigners.Count - 1) ? index + 1 : 0]).
Activity
;
466
CompositeActivity compositeActivity =
Activity
as CompositeActivity;
AuthoringOM\Design\SecondaryViewProvider.cs (13)
38
Debug.Assert(designer.
Activity
!= null);
39
if (designer.
Activity
== null)
47
string displayName = ActivityToolboxItem.GetToolboxDisplayName(designer.
Activity
.GetType());
48
viewTypes.Add(new object[] { designer.
Activity
.GetType(), DR.GetString(DR.ViewActivity, displayName) });
51
if (designer.
Activity
.Site != null)
53
WorkflowDesignerLoader loader = designer.
Activity
.Site.GetService(typeof(WorkflowDesignerLoader)) as WorkflowDesignerLoader;
54
Type activityType = designer.
Activity
.GetType();
67
(designer.
Activity
is ICompensatableActivity && typeof(CompositeActivity).IsAssignableFrom(activityType) &&
115
CompositeActivity compositeActivity = designer.
Activity
as CompositeActivity;
143
if (this.parentDesigner.
Activity
.GetType() == activityType)
157
if (activityType != this.parentDesigner.
Activity
.GetType())
184
CompositeActivity parentActivity = this.parentDesigner.
Activity
as CompositeActivity;
197
IUIService uiService = this.parentDesigner.
Activity
.Site.GetService(typeof(IUIService)) as IUIService;
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (3)
81
object nextSelectableObj = compositeDesigner.GetNextSelectableObject(this.ActivityDesigner.
Activity
, navigate);
242
if (this.connectorHitInfo.AssociatedDesigner != null && this.connectorHitInfo.AssociatedDesigner.
Activity
.Site != null)
243
return this.connectorHitInfo.AssociatedDesigner.
Activity
.Site.GetService(serviceType);
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
350
nextObject = ((ActivityDesigner)containedDesigners[currentIndex]).
Activity
;
366
nextObject = ((ActivityDesigner)containedDesigners[currentIndex - 1]).
Activity
;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
200
return new WorkflowRootLayout(
Activity
.Site);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (7)
70
bool isAlternateFlowActivityAttribute = Helpers.IsAlternateFlowActivity(containedDesigner.
Activity
);
94
return activeDesigner.
Activity
;
151
DesignerHelpers.RefreshDesignerActions(
Activity
.Site);
412
if (current != activeDesigner.
Activity
&& activeDesigner is CompositeActivityDesigner)
464
if (activeDesigner != null && listChangeArgs.RemovedItems[0] == activeDesigner.
Activity
)
784
selectionService.SetSelectedComponents(new object[] { view.AssociatedDesigner.
Activity
}, SelectionTypes.Replace);
812
Helpers.IsActivityLocked(secondaryView.AssociatedDesigner.
Activity
))
AuthoringOM\Design\WorkflowInlining.cs (9)
200
this.containedDesignSurface = new ContainedDesignSurface(
Activity
.Site, this);
424
if (e.OldValue != e.NewValue &&
Activity
!= null)
426
PropertyInfo parameterProperty =
Activity
.GetType().GetProperty("ParameterBindings", BindingFlags.Instance | BindingFlags.Public);
429
WorkflowParameterBindingCollection bindings = parameterProperty.GetValue(
Activity
, null) as WorkflowParameterBindingCollection;
444
if (
Activity
== null)
447
ITypeFilterProvider typeFilterProvider =
Activity
as ITypeFilterProvider;
448
Type workflowType =
Activity
.GetType().InvokeMember("TargetWorkflow", BindingFlags.GetProperty | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.ExactBinding, null,
Activity
, new object[] { }, CultureInfo.InvariantCulture) as Type;
480
TypeDescriptor.Refresh(
Activity
);
AuthoringOM\Design\WorkflowView.cs (4)
828
activity = parentDesigner.
Activity
;
1502
if (RootDesigner != null && RootDesigner.
Activity
!= null)
1505
if (selectionService != null && selectionService.GetComponentSelected(RootDesigner.
Activity
))
1509
helpService.AddContextAttribute("Keyword", RootDesigner.
Activity
.GetType().FullName, HelpKeywordType.F1Keyword);
System.WorkflowServices (23)
System\Workflow\Activities\ReceiveActivityDesigner.cs (8)
99
get { return this.
Activity
as ReceiveActivity; }
175
if (ServiceOperationUIEditor.TryPickOperation(this.
Activity
.Site, this.
Activity
, this.ReceiveActivity.ServiceOperationInfo, out pickedServiceOperation))
177
PropertyDescriptorUtils.SetPropertyValue(this.
Activity
.Site, ServiceOperationHelpers.GetServiceOperationInfoPropertyDescriptor(this.
Activity
), this.
Activity
, pickedServiceOperation);
194
isOneWay = this.ReceiveActivity.ServiceOperationInfo.GetIsOneWay(this.
Activity
.Site as IServiceProvider);
205
ReceiveActivity receiveActivity = this.
Activity
as ReceiveActivity;
System\Workflow\Activities\SendActivityDesigner.cs (7)
99
get { return this.
Activity
as SendActivity; }
126
if (ServiceOperationUIEditor.TryPickOperation(this.
Activity
.Site, this.
Activity
, this.SendActivity.ServiceOperationInfo, out pickedServiceOperation))
128
PropertyDescriptorUtils.SetPropertyValue(this.
Activity
.Site, ServiceOperationHelpers.GetServiceOperationInfoPropertyDescriptor(this.
Activity
), this.
Activity
, pickedServiceOperation);
147
isOneWay = operation.GetIsOneWay(this.
Activity
.Site as IServiceProvider);
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (3)
37
if (owner.
Activity
!= null && owner.
Activity
.Site != null)
39
return owner.
Activity
.Site.GetService(serviceType);
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (5)
60
activityTreeWalker.Walk(rootDesigner.
Activity
);
72
if (owner.
Activity
!= null && owner.
Activity
.Site != null)
74
return owner.
Activity
.Site.GetService(serviceType);
87
if (this.matchMaker((TActivity) owner.
Activity
, foundActivity))