Implemented interface member:
property
Site
System.ComponentModel.IComponent.Site
149 references to Site
System.Workflow.Activities (47)
CorrelationValidator.cs (1)
55if (activity.Site == null)
Designers\EventSinkActivityDesigner.cs (4)
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 (4)
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 (8)
76properties["URL"] = new WebServiceUrlPropertyDescriptor(Activity.Site, TypeDescriptor.CreateProperty(this.GetType(), "URL", typeof(string), DesignOnlyAttribute.Yes, MergablePropertyAttribute.No)); 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\StateDesigner.cs (6)
696return (this.Activity.Site != null) && 1613if (activity.Site != null) 2239if (activity != null && activity.Site != null) 2241service = activity.Site.GetService(serviceType); 2251if (activity != null && activity.Site != null) 2253IDesignerHost designerHost = activity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
Designers\StateMachineDesignerPaint.cs (1)
427if (designer == GetSafeRootDesigner(designer.Activity.Site) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null)
Designers\WebServiceReceiveDesigner.cs (3)
34properties["InterfaceType"] = new WebServiceInterfacePropertyDescriptor(Activity.Site, properties["InterfaceType"] as PropertyDescriptor); 46if (this.Activity.Site != null) 50new InterfaceTypeFilterProvider(Activity.Site).CanFilterType(interfaceType, true);
Rules\DeclarativeExpressionConditionDeclaration.cs (3)
372if (activity.Site != null) 373rules = ConditionHelper.Load_Rules_DT(activity.Site, declaringActivity); 407if (activity.Site != null)
Rules\Design\Dialogs\BasicBrowserDialog.cs (6)
52serviceProvider = activity.Site; 55IUIService uisvc = (IUIService)activity.Site.GetService(typeof(IUIService)); 159DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.Site); 182DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.Site); 205DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.Site); 240DesignerHelpers.DisplayError(ex.Message, this.Text, this.activity.Site);
Rules\Design\Dialogs\ConditionBrowserDialog.cs (3)
37RuleDefinitions rules = ConditionHelper.Load_Rules_DT(activity.Site, Helpers.GetRootActivity(activity)); 95using (RenameRuleObjectDialog dlg = new RenameRuleObjectDialog(this.Activity.Site, declarativeRuleDefinition.Name, new RenameRuleObjectDialog.NameValidatorDelegate(IsUniqueName), this)) 119ITypeProvider typeProvider = (ITypeProvider)this.Activity.Site.GetService(typeof(ITypeProvider));
Rules\Design\Dialogs\RuleConditionDialog.cs (1)
37serviceProvider = activity.Site;
Rules\Design\Dialogs\RuleSetBrowserDialog.cs (3)
26RuleDefinitions rules = ConditionHelper.Load_Rules_DT(activity.Site, Helpers.GetRootActivity(activity)); 81using (RenameRuleObjectDialog dlg = new RenameRuleObjectDialog(this.Activity.Site, ruleSet.Name, new RenameRuleObjectDialog.NameValidatorDelegate(IsUniqueName), this)) 105ValidationManager manager = new ValidationManager(this.Activity.Site);
Rules\Design\Dialogs\RuleSetDialog.cs (1)
43this.serviceProvider = activity.Site;
Rules\RuleSetReference.cs (3)
127if (activity.Site != null) 128rules = ConditionHelper.Load_Rules_DT(activity.Site, declaringActivity); 162if (activity.Site != null)
System.Workflow.ComponentModel (88)
AuthoringOM\Compiler\Validation\BindValidator.cs (1)
18if (refActivity.Site != null && !string.IsNullOrEmpty(typeName))
AuthoringOM\DependencyObject.cs (3)
706if (this.Site != null && this.Site.Container != null) 707this.Site.Container.Remove(this);
AuthoringOM\Design\ActivityDesigner.cs (24)
197IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(Activity.Site) as IWorkflowRootDesigner; 439if (activity.Enabled && !isNestedInComment && !IsLocked && activity.Site != null && !debugMode) 444ValidationManager validationManager = new ValidationManager(Activity.Site, false); 658return new ActivityRootLayout(Activity.Site); 725if (Activity.Site != null) 727foreach (PropertyDescriptor propertyDescriptor in PropertyDescriptorFilter.GetPropertiesForEvents(Activity.Site, Activity)) 1053if (Activity.Site == null) 1062GlyphManager glyphManager = (Activity != null && Activity.Site != null) ? GetService(typeof(IDesignerGlyphProviderService)) as GlyphManager : null; 1138DesignerHelpers.MakePropertiesReadOnly(activity.Site, activity); 1295PropertyDescriptorFilter.FilterProperties(Activity.Site, Activity, properties); 1318if (this.activity != null && this.activity.Site != null) 1319return this.activity.Site.GetService(serviceType); 1638WorkflowView workflowView = new WorkflowView(Activity.Site as IServiceProvider); 1648if (Activity != null && Activity.Site != null) 1932if (activity != null && activity.Site != null) 1934IDesignerHost designerHost = activity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost; 2085Type rtType = PropertyDescriptorUtils.GetBaseType(propertyDescriptor, Activity, Activity.Site); 2141CustomProperty newCustomProperty = CustomProperty.CreateCustomProperty(Activity.Site, DesignerHelpers.GenerateUniqueIdentifier(Activity.Site, Activity.Name + "_" + propertyDescriptor.Name, customPropertyNames.ToArray()), propertyDescriptor, Activity); 2269DesignerHelpers.RefreshDesignerActions(Activity.Site); 2478IWorkflowRootDesigner rootDesigner = ActivityDesigner.GetSafeRootDesigner(Activity.Site) as IWorkflowRootDesigner; 2487rootDesigner = ActivityDesigner.GetSafeRootDesigner(rootDesigner.InvokingDesigner.Activity.Site) as IWorkflowRootDesigner; 2545Activity[] activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(Activity.Site, toolboxItem, false); 2554activities = CompositeActivityDesigner.DeserializeActivitiesFromToolboxItem(Activity.Site, toolboxItem, true);
AuthoringOM\Design\ActivityDesignerAccessibleObject.cs (2)
210if (this.ActivityDesigner.Activity != null && this.ActivityDesigner.Activity.Site != null) 211return this.ActivityDesigner.Activity.Site.GetService(serviceType);
AuthoringOM\Design\CommandSet.cs (2)
366if (activity.Site != null) 368designerHost = activity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
AuthoringOM\Design\CompositeActivityDesigner.cs (13)
429compositeActivityDesigner.Activity.Site == null || 439ISite site = compositeActivityDesigner.Activity.Site; 541if (nextSelectableActivity != null && nextSelectableActivity.Site != null) 543ISelectionService selectionService = nextSelectableActivity.Site.GetService(typeof(ISelectionService)) as ISelectionService; 768if (activity.Site != null) 771IDesignerHost designerHost = activity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost; 786designerToInsert = ActivityDesigner.CreateDesigner(Activity.Site, activity); 835WorkflowDesignerLoader.AddActivityToDesigner(Activity.Site, activity); 845ExtenderHelpers.FilterDependencyProperties(this.Activity.Site, walkerEventArgs.CurrentActivity); 975ExtenderHelpers.FilterDependencyProperties(this.Activity.Site, walkerEventArgs.CurrentActivity); 1036WorkflowDesignerLoader.RemoveActivityFromDesigner(Activity.Site, activity); 1530IDesignerHost designerHost = compositeActivity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost; 1540ISelectionService selectionService = compositeActivity.Site.GetService(typeof(ISelectionService)) as ISelectionService;
AuthoringOM\Design\Connector.cs (4)
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); 809this.serviceProvider = this.editedConnector.Source.AssociatedDesigner.Activity.Site;
AuthoringOM\Design\CustomActivityDesigner.cs (2)
235CustomActivityDesignerHelper.SetBaseTypeName(baseActivityTypeName, activity.Site); 246if (activity != null && activity.Site != null && activity == Helpers.GetRootActivity(activity))
AuthoringOM\Design\DesignerHelpers.cs (5)
563if (designer == ActivityDesigner.GetSafeRootDesigner(designer.Activity.Site) && ((IWorkflowRootDesigner)designer).InvokingDesigner == null) 1538IMenuCommandService menuCommandService = designer.Activity.Site.GetService(typeof(IMenuCommandService)) as IMenuCommandService; 1740PropertyDescriptor namePropertyDescriptor = TypeDescriptor.GetConverter(value).GetProperties(new TypeDescriptorContext(activity.Site, null, value), value)["ConditionName"]; 1741PropertyDescriptor expressionPropertyDescriptor = TypeDescriptor.GetConverter(value).GetProperties(new TypeDescriptorContext(activity.Site, null, value), value)["Expression"]; 1748string rulesText = (expression != null) ? expressionPropertyDescriptor.Converter.ConvertTo(new TypeDescriptorContext(activity.Site, null, value), System.Threading.Thread.CurrentThread.CurrentUICulture, expression, typeof(string)) as string : null;
AuthoringOM\Design\DesignerWidgets.cs (6)
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; 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;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1124designer = ActivityDesigner.CreateDesigner(activity.Site, activity);
AuthoringOM\Design\FreeFormDesigner.cs (6)
388return new WorkflowRootLayout(Activity.Site); 874if (activity.Site == null || activity.Parent != Activity) 877if (activity.Site == null) 1041if (designer == null || designer.Activity == null || designer.Activity.Site == null) 1058WorkflowView workflowView = designer.Activity.Site.GetService(typeof(WorkflowView)) as WorkflowView; 1074if (connectorContainer != null && Activity != null && Activity.Site != null)
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (3)
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\PropertyDescriptors.cs (5)
91IIdentifierCreationService identifierCreationService = activity.Site.GetService(typeof(IIdentifierCreationService)) as IIdentifierCreationService; 98bool isVB = (CompilerHelpers.GetSupportedLanguage(activity.Site) == SupportedLanguages.VB); 99Type designedType = Helpers.GetDataSourceClass(Helpers.GetRootActivity(activity), activity.Site); 106IMemberCreationService memberCreationService = activity.Site.GetService(typeof(IMemberCreationService)) as IMemberCreationService; 110IDesignerHost host = activity.Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
AuthoringOM\Design\SecondaryViewProvider.cs (3)
51if (designer.Activity.Site != null) 53WorkflowDesignerLoader loader = designer.Activity.Site.GetService(typeof(WorkflowDesignerLoader)) as WorkflowDesignerLoader; 197IUIService uiService = this.parentDesigner.Activity.Site.GetService(typeof(IUIService)) as IUIService;
AuthoringOM\Design\SequenceDesignerAccessibleObject.cs (2)
242if (this.connectorHitInfo.AssociatedDesigner != null && this.connectorHitInfo.AssociatedDesigner.Activity.Site != null) 243return this.connectorHitInfo.AssociatedDesigner.Activity.Site.GetService(serviceType);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
200return new WorkflowRootLayout(Activity.Site);
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
151DesignerHelpers.RefreshDesignerActions(Activity.Site); 729if (activity.Site != null)
AuthoringOM\Design\WorkflowInlining.cs (1)
200this.containedDesignSurface = new ContainedDesignSurface(Activity.Site, this);
AuthoringOM\Serializer\ActivityCodeDomSerializationManager.cs (2)
225if (activity != null && activity.Site != null && activity.Site.Container != null &&
System.WorkflowServices (14)
System\Workflow\Activities\ReceiveActivity.cs (2)
305this.operationHelper = new ReceiveOperationInfoHelper(this.Site, this); 1092parameters = serviceOperationInfo.GetParameters(this.Site);
System\Workflow\Activities\ReceiveActivityDesigner.cs (3)
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);
System\Workflow\Activities\SendActivity.cs (2)
257this.operationHelper = new SendOperationInfoHelper(this.Site, this); 514parameters = serviceOperationInfo.GetParameters(this.Site);
System\Workflow\Activities\SendActivityDesigner.cs (3)
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 (2)
37if (owner.Activity != null && owner.Activity.Site != null) 39return owner.Activity.Site.GetService(serviceType);
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (2)
72if (owner.Activity != null && owner.Activity.Site != null) 74return owner.Activity.Site.GetService(serviceType);