132 references to Activities
System.Workflow.Activities (39)
Common\CompModHelpers.cs (9)
194
childActivities = compositeActivity2.
Activities
;
242
foreach (Activity activity in compositeActivity2.
Activities
)
321
foreach (IComponent childActivity in compositeActivity.
Activities
)
370
foreach (IComponent childActivity in compositeActivity.
Activities
)
681
foreach (Activity containedActivity in parent.
Activities
)
936
foreach (Activity childActivity in compositeActivity.
Activities
)
1053
if (activity != null && activity.
Activities
.Count > 0)
1316
foreach (Activity child in ((CompositeActivity)activity).
Activities
)
1489
foreach (Activity child in ((CompositeActivity)activity).
Activities
)
Common\Walker.cs (1)
175
foreach (Activity activity2 in ((CompositeActivity)activity).
Activities
)
Conditional.cs (2)
66
branchActivity.
Activities
.Add(activity);
69
this.
Activities
.Add(branchActivity);
Designers\ConditionalDesigner.cs (2)
34
conditionalActivity.
Activities
.Add(new IfElseBranchActivity());
35
conditionalActivity.
Activities
.Add(new IfElseBranchActivity());
Designers\ListenDesigner.cs (2)
34
listenActivity.
Activities
.Add(new EventDrivenActivity());
35
listenActivity.
Activities
.Add(new EventDrivenActivity());
Designers\ParallelDesigner.cs (2)
34
parallelActivity.
Activities
.Add(new SequenceActivity());
35
parallelActivity.
Activities
.Add(new SequenceActivity());
Designers\StateDesigner.cs (3)
2023
(state.
Activities
.Count == 0);
2114
state.
Activities
.Contains(selection) &&
2318
foreach (Activity childActivity in compositeActivity.
Activities
)
Designers\StateDesigner.TransitionInfo.cs (2)
136
foreach (Activity childActivity in state.
Activities
)
184
foreach (Activity childActivity in compositeActivity.
Activities
)
EventHandlingScope.cs (1)
280
foreach (Activity child in ((EventHandlingScopeActivity)this.Activity).
Activities
)
LocalService\CorrelationTokenTypeConvertor.cs (2)
112
foreach (Activity siblingActivity in currentActivity.Parent.
Activities
)
141
foreach (Activity containedActivity in activity.
Activities
)
StateMachineAction.cs (4)
126
StateActivity childState = (StateActivity)this.State.
Activities
[this.ChildStateName];
154
EventDrivenActivity eventDriven = (EventDrivenActivity)this.State.
Activities
[this.EventDrivenName];
182
EventDrivenActivity eventDriven = (EventDrivenActivity)this.State.
Activities
[this.EventDrivenName];
210
EventDrivenActivity eventDriven = (EventDrivenActivity)this.State.
Activities
[this.EventDrivenName];
StateMachineHelpers.cs (1)
230
foreach (Activity child in compositeActivity.
Activities
)
StateValidator.cs (5)
86
if (state.
Activities
.Count > 0)
172
foreach (Activity activity in state.
Activities
)
201
foreach (Activity activity in state.
Activities
)
229
if (state.
Activities
.Count > 0)
349
foreach (Activity activity in parent.
Activities
)
WebServiceResponse.cs (3)
469
foreach (Activity containedActivity in activity.
Activities
)
506
foreach (Activity siblingActivity in currentActivity.Parent.
Activities
)
636
foreach (Activity siblingActivity in currentActivity.Parent.
Activities
)
System.Workflow.ComponentModel (83)
AuthoringOM\Activity.cs (6)
993
int thisActivityIndex = thisActivity.parent.
Activities
.IndexOf(thisActivity);
1540
foreach (Activity childActivity in ((CompositeActivity)this).
Activities
)
1793
foreach (Activity completedChild2 in ((CompositeActivity)completedChild).
Activities
)
2116
if (this.
Activities
.Count > 0)
2420
foreach (Activity activity2 in ((CompositeActivity)activity).
Activities
)
2473
foreach (Activity activity in this.
Activities
)
AuthoringOM\Design\ActivityDesigner.cs (1)
848
foreach (Activity containedActivity in ((CompositeActivity)parentDesigner.Activity).
Activities
)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
79
foreach (Activity activity in compositeActivity.
Activities
)
AuthoringOM\Design\ActivityPreviewDesigner.cs (1)
484
foreach (Activity containedActivity in compositeActivity.
Activities
)
AuthoringOM\Design\CommandSet.cs (2)
456
hitInfo = new ConnectorHitTestInfo(parentDesigner, HitTestLocations.Designer, parentActivity.
Activities
.IndexOf(selectedActivity) + 1);
924
hitInfo = new ConnectorHitTestInfo(parentDesigner, HitTestLocations.Designer, parentActivity.
Activities
.IndexOf(selectedActivity) + 1);
AuthoringOM\Design\CompositeActivityDesigner.cs (19)
147
foreach (Activity activity in compositeActivity.
Activities
)
396
foreach (Activity childActivity in compositeActivity.
Activities
)
834
compositeActivity.
Activities
.Insert(index++, activity);
916
int originalIndex = compositeActivity.
Activities
.IndexOf(activity);
926
int positionInParent = parentActivity.
Activities
.IndexOf(activity);
927
activity.Parent.
Activities
.Remove(activity);
949
compositeActivity.
Activities
.Insert(index++, activity);
954
parentActivity.
Activities
.Insert(positionInParent, activity);
1020
compositeActivity.
Activities
.Remove(activity);
1169
compositeActivity.
Activities
.ListChanging += new EventHandler<ActivityCollectionChangeEventArgs>(OnActivityListChanging);
1170
compositeActivity.
Activities
.ListChanged += new EventHandler<ActivityCollectionChangeEventArgs>(OnActivityListChanged);
1191
compositeActivity.
Activities
.ListChanging -= new EventHandler<ActivityCollectionChangeEventArgs>(OnActivityListChanging);
1192
compositeActivity.
Activities
.ListChanged -= new EventHandler<ActivityCollectionChangeEventArgs>(OnActivityListChanged);
1327
foreach (Activity activity in compositeActivity.
Activities
)
1522
if (compositeActivity == null || !compositeActivity.
Activities
.Contains(activity))
1525
int index = compositeActivity.
Activities
.IndexOf(activity);
1527
if (index < 0 || index >= compositeActivity.
Activities
.Count)
1537
compositeActivity.
Activities
.Remove(activity);
1538
compositeActivity.
Activities
.Insert(index, activity);
AuthoringOM\Design\CustomActivityDesigner.cs (7)
158
if (rootActivity != null && rootActivity.
Activities
.Count == 0)
181
if (compositeActivity != null && compositeActivity.
Activities
.Count > 0)
188
Activity[] activities = compositeActivity.
Activities
.ToArray();
189
compositeActivity.
Activities
.Clear();
195
rootActivity.
Activities
.Add(newActivity);
316
if (host.RootComponent is CompositeActivity && ((CompositeActivity)host.RootComponent).
Activities
.Count > 0)
329
List<Activity> activitiesToRemove = new List<Activity>(((CompositeActivity)host.RootComponent).
Activities
);
AuthoringOM\Design\DesignerInterfaces.cs (1)
682
return compositeActivity.
Activities
.Count;
AuthoringOM\Design\DesignerWidgets.cs (1)
3526
foreach (Activity containedActivity in compositeActivity.
Activities
)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (8)
991
while (rootDecl.
Activities
.Count > 0)
993
Activity declToDelete = rootDecl.
Activities
[0];
994
rootDecl.
Activities
.Remove(declToDelete);
1021
rootDecl.
Activities
.Add(activity);
1050
previewActivity = (rootDecl.
Activities
.Count > 0 && !dummyPreview) ? rootDecl.
Activities
[0] : rootDecl;
1071
parentActivity.
Activities
.Add(dummyActivity);
1098
foreach (Activity activity in compositeActivity.
Activities
)
AuthoringOM\Design\DocumentOutline.cs (1)
362
foreach (Activity childActivity in ((CompositeActivity)activity).
Activities
)
AuthoringOM\Design\FreeFormDesigner.cs (1)
883
CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, ((CompositeActivity)Activity).
Activities
.Count), activitiesToInsert.AsReadOnly(), SR.GetString(SR.DragDropActivities));
AuthoringOM\Design\IdentifierCreationService.cs (1)
121
foreach (Activity child in ((CompositeActivity)activity).
Activities
)
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
472
CompositeActivityDesigner.InsertActivities(this, new ConnectorHitTestInfo(this, HitTestLocations.Designer, compositeActivity.
Activities
.Count), new List<Activity>(new Activity[] { branchActivity }).AsReadOnly(), DR.GetString(DR.AddingBranch, branchActivity.GetType().Name));
AuthoringOM\Design\SecondaryViewProvider.cs (1)
119
foreach (Activity activity in compositeActivity.
Activities
)
AuthoringOM\ScheduleChanges.cs (14)
307
compositeActivity.
Activities
.ListChanged += new EventHandler<ActivityCollectionChangeEventArgs>(this.OnActivityListChanged);
308
foreach (Activity activity2 in ((CompositeActivity)activity).
Activities
)
334
compositeActivity.
Activities
.ListChanged -= new EventHandler<ActivityCollectionChangeEventArgs>(this.OnActivityListChanged);
335
foreach (Activity activity2 in ((CompositeActivity)activity).
Activities
)
372
foreach (Activity activity in compositeActivity.
Activities
)
411
Activity addedActivity = ownerActivity.
Activities
[((AddedActivityAction)action).Index];
458
IEnumerator<Activity> clonedActivitiesEnum = clonedCompositeActivity.
Activities
.GetEnumerator();
459
IEnumerator<Activity> originalActivitiesEnum = originalCompositeActivity.
Activities
.GetEnumerator();
707
this.index = (compositeActivity.
Activities
!= null) ? compositeActivity.
Activities
.IndexOf(activityAdded) : -1;
793
ownerActivity.
Activities
.Insert(this.index, clonedAddedActivity);
869
if (this.removedActivityIndex >= ownerActivity.
Activities
.Count)
876
this.originalRemovedActivity = ownerActivity.
Activities
[this.removedActivityIndex];
877
ownerActivity.
Activities
.RemoveAt(this.removedActivityIndex);
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (5)
217
foreach (Activity activity1 in (xomlActivity as CompositeActivity).
Activities
)
226
instanceActivity.
Activities
.Clear();
227
xomlActivity.
Activities
.Clear();
231
instanceActivity.
Activities
.Add(activity);
240
instanceActivity.UserData[UserDataKeys.CustomActivity] = (instanceActivity.
Activities
.Count > 0);
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
135
if (!activity.Parent.
Activities
.Contains(activity))
Shared\CompModHelpers.cs (9)
192
childActivities = compositeActivity2.
Activities
;
240
foreach (Activity activity in compositeActivity2.
Activities
)
319
foreach (IComponent childActivity in compositeActivity.
Activities
)
368
foreach (IComponent childActivity in compositeActivity.
Activities
)
679
foreach (Activity containedActivity in parent.
Activities
)
934
foreach (Activity childActivity in compositeActivity.
Activities
)
1051
if (activity != null && activity.
Activities
.Count > 0)
1314
foreach (Activity child in ((CompositeActivity)activity).
Activities
)
1487
foreach (Activity child in ((CompositeActivity)activity).
Activities
)
Shared\Walker.cs (1)
174
foreach (Activity activity2 in ((CompositeActivity)activity).
Activities
)
Shared\XomlSerializationHelpers.cs (1)
320
foreach (Activity nestedChildActivity in ((CompositeActivity)childActivity).
Activities
)
System.Workflow.Runtime (5)
DebugEngine\DebugController.cs (1)
965
foreach (Activity childActivity in ((CompositeActivity)rootActivity).
Activities
)
Tracking\SqlTrackingService.cs (4)
2342
foreach (Activity activity in ((CompositeActivity)removed).
Activities
)
2361
foreach (Activity activity in ((CompositeActivity)removed).
Activities
)
2387
foreach (Activity activity in ((CompositeActivity)added).
Activities
)
2411
foreach (Activity activity in ((CompositeActivity)added).
Activities
)
System.WorkflowServices (5)
System\Workflow\Activities\ChannelTokenTypeConverter.cs (2)
117
foreach (Activity containedActivity in activity.
Activities
)
148
foreach (Activity siblingActivity in currentActivity.Parent.
Activities
)
System\Workflow\Activities\ContextTokenTypeConverter.cs (2)
117
foreach (Activity containedActivity in activity.
Activities
)
148
foreach (Activity siblingActivity in currentActivity.Parent.
Activities
)
System\Workflow\Activities\ValidationHelper.cs (1)
1075
foreach (Activity activity in ((CompositeActivity) rootActivity).
Activities
)