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