2 interfaces inheriting from IComponent
System.Windows.Forms (2)
winforms\Managed\System\WinForms\IBindableComponent.cs (1)
15
public interface IBindableComponent :
IComponent
{
winforms\Managed\System\WinForms\Layout\IArrangedElement.cs (1)
16
internal interface IArrangedElement :
IComponent
{
7 implementations of IComponent
System (2)
compmod\system\componentmodel\Component.cs (1)
24
public class Component : MarshalByRefObject,
IComponent
{
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
25
public class MarshalByValueComponent :
IComponent
, IServiceProvider {
System.Web (2)
HttpApplication.cs (1)
69
public class HttpApplication :
IComponent
, IHttpAsyncHandler, IRequestCompletedNotifier, ISyncContext {
UI\Control.cs (1)
49
public class Control :
IComponent
, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor {
System.Web.Mobile (1)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
625
ICustomTypeDescriptor, IDeviceSpecificChoiceDesigner,
IComponent
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
27
public class DataGridViewColumn : DataGridViewBand,
IComponent
System.Workflow.ComponentModel (1)
AuthoringOM\DependencyObject.cs (1)
21
public abstract class DependencyObject :
IComponent
, IDependencyObjectAccessor, IDisposable
389 references to IComponent
System (85)
compmod\system\componentmodel\Component.cs (1)
16
/// <see cref='System.ComponentModel.
IComponent
'/>
compmod\system\componentmodel\ComponentCollection.cs (6)
45
public ComponentCollection(
IComponent
[] components) {
56
public virtual
IComponent
this[string name] {
60
foreach(
IComponent
comp in list) {
77
public virtual
IComponent
this[int index] {
79
return (
IComponent
)InnerList[index];
86
public void CopyTo(
IComponent
[] array, int index) {
compmod\system\componentmodel\ComponentResourceManager.cs (2)
112
if (value is
IComponent
) {
113
ISite site = ((
IComponent
)value).Site;
compmod\system\componentmodel\Container.cs (13)
44
public virtual void Add(
IComponent
component) {
55
public virtual void Add(
IComponent
component, String name) {
96
/// <para>Creates a Site <see cref='System.ComponentModel.ISite'/> for the given <see cref='System.ComponentModel.
IComponent
'/>
99
protected virtual ISite CreateSite(
IComponent
component, string name) {
166
IComponent
[] result = new
IComponent
[siteCount];
204
public virtual void Remove(
IComponent
component) {
208
private void Remove(
IComponent
component, bool preserveSite) {
229
protected void RemoveWithoutUnsiting(
IComponent
component) {
238
protected virtual void ValidateName(
IComponent
component, string name) {
262
private
IComponent
component;
266
internal Site(
IComponent
component, Container container, String name) {
273
public
IComponent
Component {
compmod\system\componentmodel\design\ComponentEvent.cs (3)
26
private
IComponent
component;
33
public virtual
IComponent
Component {
44
public ComponentEventArgs(
IComponent
component) {
compmod\system\componentmodel\design\IDesigner.cs (2)
26
IComponent
Component {get;}
45
void Initialize(
IComponent
component);
compmod\system\componentmodel\design\IDesignerHost.cs (5)
50
IComponent
RootComponent { get; }
123
IComponent
CreateComponent(Type componentClass);
130
IComponent
CreateComponent(Type componentClass, string name);
161
void DestroyComponent(
IComponent
component);
168
IDesigner GetDesigner(
IComponent
component);
compmod\system\componentmodel\design\IEventPropertyService.cs (2)
24
string CreateUniqueMethodName(
IComponent
component, EventDescriptor e);
66
bool ShowCode(
IComponent
component, EventDescriptor e);
compmod\system\componentmodel\design\IInheritanceService.cs (2)
27
void AddInheritedComponents(
IComponent
component, IContainer container);
37
InheritanceAttribute GetInheritanceAttribute(
IComponent
component);
compmod\system\componentmodel\design\IReferenceService.cs (1)
26
IComponent
GetComponent(object reference);
compmod\system\componentmodel\design\ITypeDescriptorFilterService.cs (3)
29
bool FilterAttributes(
IComponent
component, IDictionary attributes);
36
bool FilterEvents(
IComponent
component, IDictionary events);
43
bool FilterProperties(
IComponent
component, IDictionary properties);
compmod\system\componentmodel\IComponent.cs (1)
45
/// with the <see cref='System.ComponentModel.
IComponent
'/>.</para>
compmod\system\componentmodel\IContainer.cs (5)
27
/// <para>Adds the specified <see cref='System.ComponentModel.
IComponent
'/> to the <see cref='System.ComponentModel.IContainer'/>
30
void Add(
IComponent
component);
34
/// <para>Adds the specified <see cref='System.ComponentModel.
IComponent
'/> to the <see cref='System.ComponentModel.IContainer'/>
37
void Add(
IComponent
component, String name);
49
void Remove(
IComponent
component);
compmod\system\componentmodel\INestedContainer.cs (1)
22
IComponent
Owner { get; }
compmod\system\componentmodel\ISite.cs (1)
33
IComponent
Component {get;}
compmod\system\componentmodel\MarshalByValueComponent.cs (1)
16
/// <para>Provides the base implementation for <see cref='System.ComponentModel.
IComponent
'/>,
compmod\system\componentmodel\MemberDescriptor.cs (2)
482
if (!(component is
IComponent
)) {
486
return((
IComponent
)component).Site;
compmod\system\componentmodel\NestedContainer.cs (8)
25
private
IComponent
_owner;
30
public NestedContainer(
IComponent
owner) {
41
public
IComponent
Owner {
73
protected override ISite CreateSite(
IComponent
component, string name) {
115
private
IComponent
component;
119
internal Site(
IComponent
component, NestedContainer container, string name) {
126
public
IComponent
Component {
147
IComponent
owner = container.Owner;
compmod\system\componentmodel\ReferenceConverter.cs (4)
115
if (!Marshal.IsComObject(value) && value is
IComponent
) {
116
IComponent
comp = (
IComponent
)value;
167
foreach(
IComponent
obj in objs) {
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (2)
943
IComponent
comp = component as
IComponent
;
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (10)
258
IComponent
comp = instance as
IComponent
;
574
IComponent
component = instance as
IComponent
;
763
IComponent
comp = component as
IComponent
;
1181
IComponent
comp = provider as
IComponent
;
1593
IComponent
comp = instance as
IComponent
;
compmod\system\componentmodel\TypeDescriptor.cs (7)
575
public static IDesigner CreateDesigner(
IComponent
component, Type designerBaseType)
1333
IComponent
component = primary as
IComponent
;
1899
IComponent
component = prov as
IComponent
;
2494
IComponent
component = instance as
IComponent
;
sys\system\configuration\ApplicationSettingsBase.cs (3)
33
private
IComponent
_owner;
57
protected ApplicationSettingsBase(
IComponent
owner) : this(owner, String.Empty) {
71
protected ApplicationSettingsBase(
IComponent
owner, string settingsKey) : this(settingsKey) {
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolCreatedEventArgs.cs (3)
17
IComponent
[] components;
19
internal ToolCreatedEventArgs(RoutedEvent eventName, object sender,
IComponent
[] components)
28
public
IComponent
[] Components
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolCreatedEventArgs.cs (3)
17
IComponent
[] components;
19
internal ToolCreatedEventArgs(RoutedEvent eventName, object sender,
IComponent
[] components)
28
public
IComponent
[] Components
System.Drawing (15)
commonui\System\Drawing\Design\ToolboxComponentsCreatedEventArgs.cs (4)
20
private readonly
IComponent
[] comps;
28
public ToolboxComponentsCreatedEventArgs(
IComponent
[] components) {
38
public
IComponent
[] Components {
40
return (
IComponent
[])comps.Clone();
commonui\System\Drawing\Design\ToolboxItem.cs (11)
329
public
IComponent
[] CreateComponents() {
338
public
IComponent
[] CreateComponents(IDesignerHost host) {
340
IComponent
[] comps = CreateComponentsCore(host, new Hashtable());
352
public
IComponent
[] CreateComponents(IDesignerHost host, IDictionary defaultValues) {
354
IComponent
[] comps = CreateComponentsCore(host, defaultValues);
366
protected virtual
IComponent
[] CreateComponentsCore(IDesignerHost host) {
374
else if (typeof(
IComponent
).IsAssignableFrom(createType)) {
379
IComponent
[] temp = new
IComponent
[comps.Count];
389
protected virtual
IComponent
[] CreateComponentsCore(IDesignerHost host, IDictionary defaultValues) {
390
IComponent
[] components = CreateComponentsCore(host);
System.Messaging (3)
System\Messaging\Design\QueuePathEditor.cs (1)
75
context.Container.Add((
IComponent
)value);
System\Messaging\MessageQueueInstaller.cs (2)
364
public override void CopyFromComponent(
IComponent
component)
370
private void InternalCopyFromComponent(
IComponent
component)
System.Web (4)
UI\ClientScriptManager.cs (1)
547
ISite site = ((
IComponent
)owner).Site;
UI\ControlIdConverter.cs (3)
38
IComponent
component = instance as
IComponent
;
50
foreach (
IComponent
comp in (IEnumerable)allComponents) {
System.Web.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
157
foreach(
IComponent
comonent in context.Container.Components)
System.Web.Entity.Design (2)
System\Data\WebControls\Design\EntityDataSourceDesigner.cs (1)
24
public override void Initialize(
IComponent
component)
System\Data\WebControls\Design\EntityDataSourceStatementEditor.cs (1)
46
(
IComponent
)context.Instance,
System.Web.Mobile (60)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (5)
46
internal static IDesigner ControlDesigner(
IComponent
component)
88
internal static
IComponent
GetRootComponent(
IComponent
component)
119
internal static bool InUserControl(
IComponent
component)
124
internal static bool InMobileUserControl(
IComponent
component)
UI\MobileControls\Design\AdRotatorDesigner.cs (1)
33
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\BaseTemplatedMobileComponentEditor.cs (3)
62
Debug.Assert(obj is
IComponent
, "Expected obj to be an IComponent");
63
IComponent
comp = (
IComponent
)obj;
UI\MobileControls\Design\BaseValidatorDesigner.cs (1)
51
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\CalendarDesigner.cs (1)
51
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\CommandDesigner.cs (1)
49
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\Converters\DataFieldConverter.cs (3)
105
IComponent
component = context.Instance as
IComponent
;
228
if (context.Instance is
IComponent
)
UI\MobileControls\Design\Converters\DataMemberConverter.cs (3)
94
IComponent
component = context.Instance as
IComponent
;
154
if (context.Instance is
IComponent
)
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (1)
130
if (context.Instance is
IComponent
)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
136
foreach(
IComponent
component in container.Components)
UI\MobileControls\Design\Converters\NavigateUrlConverter.cs (1)
50
internal static String GetUrl(
IComponent
component, String url, String oldUrl)
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (1)
98
foreach(
IComponent
component in container.Components)
UI\MobileControls\Design\DeviceSpecificDesigner.cs (3)
124
IDesigner designer = host.GetDesigner((
IComponent
) newDS);
140
public override void Initialize(
IComponent
component)
292
IDesigner designer = host.GetDesigner((
IComponent
) _parentContainer.DeviceSpecific);
UI\MobileControls\Design\FormDesigner.cs (1)
136
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ImageDesigner.cs (1)
70
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ItemCollectionEditor.cs (1)
57
IDesigner designer = designerHost.GetDesigner((
IComponent
)obj);
UI\MobileControls\Design\LabelDesigner.cs (1)
52
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\LinkDesigner.cs (1)
52
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ListComponentEditorPage.cs (1)
115
public override sealed void SetComponent(
IComponent
component)
UI\MobileControls\Design\ListDesigner.cs (1)
487
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ListGeneralPage.cs (1)
402
public override void SetComponent(
IComponent
component)
UI\MobileControls\Design\MobileComponentEditorPage.cs (2)
55
IComponent
selectedComponent = GetSelectedComponent();
87
IComponent
selectedComponent = GetSelectedComponent();
UI\MobileControls\Design\MobileContainerDesigner.cs (1)
267
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\MobileControlDesigner.cs (1)
440
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\MobileControlPersister.cs (2)
821
IComponent
baseComponent = (
IComponent
)control.Page;
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (1)
677
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ObjectListDesigner.cs (1)
75
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ObjectListGeneralPage.cs (1)
237
public override void SetComponent(
IComponent
component)
UI\MobileControls\Design\PanelDesigner.cs (1)
106
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\PhoneCallDesigner.cs (1)
53
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\PropertyOverridesDialog.cs (6)
352
ISite componentSite = ((
IComponent
)(_designer.UnderlyingControl)).Site;
708
if(clone is
IComponent
)
710
((
IComponent
)clone).Site = ((
IComponent
)target).Site;
852
IComponent
component = (
IComponent
) sender;
UI\MobileControls\Design\SelectionListDesigner.cs (1)
384
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\StyleSheetDesigner.cs (5)
112
IComponent
component = DesignerAdapterUtil.GetRootComponent(Component);
125
IComponent
component = DesignerAdapterUtil.GetRootComponent(Component);
145
public override void Initialize(
IComponent
component)
269
designer = Host.GetDesigner((
IComponent
) control);
406
IDesigner designer = Host.GetDesigner((
IComponent
) MobilePage.StyleSheet);
UI\MobileControls\Design\TemplatingOptionsDialog.cs (1)
253
foreach (
IComponent
component in allComponents)
UI\MobileControls\Design\TextBoxDesigner.cs (1)
50
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\TextViewDesigner.cs (1)
46
public override void Initialize(
IComponent
component)
UI\MobileControls\Design\ValidationSummaryDesigner.cs (1)
50
public override void Initialize(
IComponent
component)
System.Windows.Forms (78)
winforms\Managed\System\WinForms\AxHost.cs (1)
5572
foreach (
IComponent
comp in comps) {
winforms\Managed\System\WinForms\Binding.cs (2)
584
IComponent
comp = (this.control as
IComponent
);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
130
return TypeDescriptor.GetConverter(typeof(
IComponent
));
winforms\Managed\System\WinForms\Control.cs (3)
18832
private
IComponent
component;
18838
internal AxSourcingSite(
IComponent
component, UnsafeNativeMethods.IOleClientSite clientSite, string name) {
18845
public
IComponent
Component {
winforms\Managed\System\WinForms\DataGrid.cs (1)
8949
private void ObjectSiteChange(IContainer container,
IComponent
component, bool site) {
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2715
IComponent
component = this.DataSource as
IComponent
;
2736
IComponent
component = dataSource as
IComponent
;
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (5)
35
private
IComponent
component;
69
if (!(component is
IComponent
)) {
72
this.component = (
IComponent
)component;
531
internal
IComponent
component;
543
internal ComponentEditorPageSite(Control parent, Type pageClass,
IComponent
component, ComponentEditorForm form) {
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (4)
38
IComponent
component;
106
protected
IComponent
Component {
254
protected
IComponent
GetSelectedComponent() {
329
public virtual void SetComponent(
IComponent
component) {
winforms\Managed\System\WinForms\Design\EventsTab.cs (2)
111
if (eventPropertySvc == null && obj is
IComponent
){
112
ISite site = ((
IComponent
)obj).Site;
winforms\Managed\System\WinForms\Design\WinFormsComponentEditor.cs (1)
22
/// of <see cref='System.ComponentModel.
IComponent
'/>
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
128
IComponent
baseComp = host.RootComponent;
winforms\Managed\System\WinForms\LayoutEvent.cs (4)
15
private readonly
IComponent
affectedComponent;
19
public LayoutEventArgs(
IComponent
affectedComponent, string affectedProperty) {
27
: this((
IComponent
)affectedControl, affectedProperty) {
31
public
IComponent
AffectedComponent {
winforms\Managed\System\WinForms\ListControl.cs (4)
825
if (this.dataSource is
IComponent
) {
826
((
IComponent
) this.dataSource).Disposed -= new EventHandler(DataSourceDisposed);
843
if (this.dataSource is
IComponent
) {
844
((
IComponent
) this.dataSource).Disposed += new EventHandler(DataSourceDisposed);
winforms\Managed\System\WinForms\PropertyGrid.cs (15)
1314
showEvents = showEvents && (tempObj is
IComponent
&& ((
IComponent
)tempObj).Site != null);
1862
if (component != null && component is
IComponent
&& ((
IComponent
) component).Site != null)
1863
host = (IDesignerHost) ((
IComponent
) component).Site.GetService(typeof(IDesignerHost));
2126
IComponent
component = null;
2136
if (obj is
IComponent
) {
2137
component = (
IComponent
)obj;
2162
if (currentObjects.Length == 1 && GetUnwrappedObject(0) is
IComponent
) {
3423
IComponent
currentSelection = SelectedObject as
IComponent
;
3570
if (baseObject is
IComponent
&&
3573
ISite site = ((
IComponent
)baseObject).Site;
3958
foreach (
IComponent
comp in components) {
5226
public SelectedObjectConverter() : base(typeof(
IComponent
)) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (7)
267
public virtual
IComponent
Component {
270
if (owner is
IComponent
) {
271
return(
IComponent
) owner;
297
IComponent
component = Component;
1389
public virtual
IComponent
[] GetComponents() {
1390
IComponent
component = Component;
1392
return new
IComponent
[] { component};
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (7)
38
IComponent
comp = o as
IComponent
;
137
public override
IComponent
[] GetComponents() {
138
IComponent
[] temp = new
IComponent
[objs.Length];
251
bool needChangeNotify = !(objects[0] is
IComponent
) || ((
IComponent
)objects[0]).Site == null;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (6)
56
static
IComponent
targetComponent;
660
bool needChangeNotify = !(obj is
IComponent
) || ((
IComponent
)obj).Site == null;
888
IComponent
component = obj as
IComponent
;
896
component = objArray.GetValue(0) as
IComponent
;
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
202
if (objValue is
IComponent
) {
203
ISite site = ((
IComponent
)objValue).Site;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (5)
1108
IComponent
comp = null;
1109
IComponent
owner = null;
1113
comp = control as
IComponent
;
1114
owner = host as
IComponent
;
1120
IComponent
ISite.Component {
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1212
IComponent
comp = host.RootComponent;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (1)
220
foreach (
IComponent
comp in comps) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (1)
368
public static string GetComponentName(
IComponent
component, string defaultNameValue) {
System.Windows.Forms.DataVisualization (1)
Common\Converters\DataManagerConverters.cs (1)
157
foreach(
IComponent
comonent in context.Container.Components)
System.Workflow.Activities (43)
Common\BasePropertyDescriptor.cs (8)
40
if ((component is
IComponent
) && ((
IComponent
)component).Site != null)
41
site = ((
IComponent
)component).Site;
43
if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is
IComponent
)
44
site = ((
IComponent
)(component as object[])[0]).Site;
51
IComponent
baseComponent = referenceService.GetComponent(component);
64
internal static
IComponent
GetComponent(ITypeDescriptorContext context)
292
if (component is
IComponent
)
Common\CompModHelpers.cs (10)
297
Queue<
IComponent
> serializedComponents = new Queue<
IComponent
>();
298
foreach (
IComponent
activity in activities)
303
IComponent
component = serializedComponents.Dequeue();
321
foreach (
IComponent
childActivity in compositeActivity.Activities)
346
Queue<
IComponent
> serializedComponents = new Queue<
IComponent
>();
347
foreach (
IComponent
component in activities)
352
IComponent
component = serializedComponents.Dequeue();
370
foreach (
IComponent
childActivity in compositeActivity.Activities)
Designers\ConditionalDesigner.cs (3)
31
protected override
IComponent
[] CreateComponentsCore(IDesignerHost designerHost)
36
return (
IComponent
[])new
IComponent
[] { conditionalActivity };
Designers\InvokeWebServiceDesigner.cs (2)
41
public override
IComponent
[] CreateComponentsWithUI(IDesignerHost host)
49
IComponent
[] components = base.CreateComponentsWithUI(host);
Designers\ListenDesigner.cs (3)
31
protected override
IComponent
[] CreateComponentsCore(IDesignerHost designerHost)
36
return (
IComponent
[])new
IComponent
[] { listenActivity };
Designers\ParallelDesigner.cs (3)
31
protected override
IComponent
[] CreateComponentsCore(IDesignerHost designerHost)
36
return (
IComponent
[])new
IComponent
[] { parallelActivity };
EventSinkActivity.cs (2)
446
if (((
IComponent
)this).Site == null)
449
ITypeProvider typeProvider = (ITypeProvider)((
IComponent
)this).Site.GetService(typeof(ITypeProvider));
InvokeMethodActivity.cs (2)
251
if (((
IComponent
)this).Site == null)
254
ITypeProvider typeProvider = (ITypeProvider)((
IComponent
)this).Site.GetService(typeof(ITypeProvider));
InvokeSchedule.cs (1)
132
IDesignerHost designerHost = ((
IComponent
)this).Site.GetService(typeof(IDesignerHost)) as IDesignerHost;
InvokeWebService.cs (2)
382
if (((
IComponent
)this).Site == null)
385
ITypeProvider typeProvider = (ITypeProvider)((
IComponent
)this).Site.GetService(typeof(ITypeProvider));
Rules\Design\Dialogs\BasicBrowserDialog.cs (2)
290
ISite site = ((
IComponent
)this.activity).Site;
312
ISite site = ((
IComponent
)this.activity).Site;
Rules\Design\LogicalExpressionTypeConverter.cs (1)
171
IComponent
component = PropertyDescriptorUtils.GetComponent(context);
WebServiceReceive.cs (2)
443
if (((
IComponent
)this).Site == null)
446
ITypeProvider typeProvider = (ITypeProvider)((
IComponent
)this).Site.GetService(typeof(ITypeProvider));
WebServiceResponse.cs (2)
249
if (((
IComponent
)this).Site == null)
252
ITypeProvider typeProvider = (ITypeProvider)((
IComponent
)this).Site.GetService(typeof(ITypeProvider));
System.Workflow.ComponentModel (84)
AuthoringOM\Activity.cs (5)
2371
if (((
IComponent
)this).Site != null)
2373
IComponentChangeService changeService = ((
IComponent
)this).Site.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
2415
activity.Name = DesignerHelpers.GenerateUniqueIdentifier(((
IComponent
)this).Site, Helpers.GetBaseIdentifier(activity), (string[])identifiers.ToArray(typeof(string)));
2427
if (((
IComponent
)this).Site != null)
2429
IComponentChangeService changeService = ((
IComponent
)this).Site.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
AuthoringOM\DependencyObject.cs (1)
665
event EventHandler
IComponent
.Disposed
AuthoringOM\Design\ActivityDesigner.cs (4)
640
foreach (
IComponent
component in designerHost.Container.Components)
2287
IComponent
IDesigner.Component
2291
return this.activity as
IComponent
;
2313
void IDesigner.Initialize(
IComponent
component)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
62
foreach (
IComponent
component in host.Container.Components)
AuthoringOM\Design\CommandSet.cs (3)
636
IComponent
selectedComponent = this.selectionService.PrimarySelection as
IComponent
;
714
IComponent
rootComponent = (designerHost != null) ? designerHost.RootComponent : null;
AuthoringOM\Design\ComponentSerializationService.cs (5)
249
bool needChangeEvent = (componentChangeService != null) && (!(obj is
IComponent
) || (((
IComponent
)obj).Site == null));
545
private
IComponent
GetComponent(object obj, IServiceProvider serviceProvider)
547
IComponent
component = obj as
IComponent
;
AuthoringOM\Design\CompositeActivityDesigner.cs (2)
456
moveCase = ((
IComponent
)activity).Site != null;
772
designerToInsert = (designerHost != null) ? designerHost.GetDesigner((
IComponent
)activity) as ActivityDesigner : null;
AuthoringOM\Design\CustomActivityDesigner.cs (2)
165
IComponent
[] components = item.CreateComponents();
171
foreach (
IComponent
component in components)
AuthoringOM\Design\DesignerHelpers.cs (6)
1259
foreach (
IComponent
component in designerHost.Container.Components)
1368
((
IComponent
)activity).Site.Name = name;
1379
((
IComponent
)childActivity).Site.Name = ((
IComponent
)declaringActivity).Site.Name + "." + childActivity.Name; //the parent should have already been updated by now
1573
internal static string CreateUniqueMethodName(
IComponent
component, string propName, Type delegateType)
1595
ISite site = ((
IComponent
)component).Site;
AuthoringOM\Design\DesignerWidgets.cs (1)
3520
IComponent
component = (PreviewDesigner != null) ? PreviewDesigner.Activity : null;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (6)
987
IComponent
previewActivity = null;
1006
IComponent
[] components = null;
1016
components = new
IComponent
[] { Activator.CreateInstance(activityType) as
IComponent
};
1044
selectionService.SetSelectedComponents(new
IComponent
[] { rootDecl });
1119
protected override IDesigner CreateDesigner(
IComponent
component, bool rootDesigner)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
1272
IComponent
System.ComponentModel.ISite.Component
1592
public
IComponent
Component { get { return null; } }
AuthoringOM\Design\FreeFormDesigner.cs (1)
243
if (Activity != null && ((
IComponent
)Activity).Site != null && !(ParentDesigner is FreeformActivityDesigner))
AuthoringOM\Design\IdentifierCreationService.cs (1)
126
if (((
IComponent
)activity).Site != null)
AuthoringOM\Design\ReferenceService.cs (12)
30
private void CreateReferences(
IComponent
component)
35
private void CreateReferences(string trailingName, object reference,
IComponent
sitedComponent)
97
foreach (
IComponent
component in container.Components)
110
foreach (
IComponent
ic in clonedAddedComponents)
121
foreach (
IComponent
ic in clonedRemovedComponents)
129
foreach (
IComponent
ic in clonedChangedComponents)
141
IComponent
comp = ((IReferenceService)this).GetComponent(cevent.Component);
202
private void RemoveReferences(
IComponent
component)
241
IComponent
IReferenceService.GetComponent(object reference)
320
private
IComponent
sitedComponent;
323
internal ReferenceHolder(string trailingName, object reference,
IComponent
sitedComponent)
382
internal
IComponent
SitedComponent
AuthoringOM\Design\TypeConverters.cs (1)
136
IComponent
component = PropertyDescriptorUtils.GetComponent(context);
AuthoringOM\Design\UITypeEditors.cs (1)
72
IComponent
baseComponent = rs.GetComponent(typeDescriptorContext.Instance);
AuthoringOM\Design\WinOEToolBoxItem.cs (5)
53
public virtual
IComponent
[] CreateComponentsWithUI(IDesignerHost host)
60
protected override
IComponent
[] CreateComponentsCore(IDesignerHost host)
86
if (typeof(
IComponent
).IsAssignableFrom(typeOfComponent))
90
IComponent
[] temp = new
IComponent
[comps.Count];
AuthoringOM\Design\WorkflowInlining.cs (1)
241
protected override IDesigner CreateDesigner(
IComponent
component, bool rootDesigner)
AuthoringOM\Design\XomlDesignerLoader.cs (2)
153
void AddTargetFrameworkProvider(
IComponent
component)
874
IComponent
component = null;
AuthoringOM\Serializer\ActivityCodeDomReferenceService.cs (1)
57
public System.ComponentModel.
IComponent
GetComponent(object reference)
Shared\BasePropertyDescriptor.cs (8)
39
if ((component is
IComponent
) && ((
IComponent
)component).Site != null)
40
site = ((
IComponent
)component).Site;
42
if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is
IComponent
)
43
site = ((
IComponent
)(component as object[])[0]).Site;
50
IComponent
baseComponent = referenceService.GetComponent(component);
63
internal static
IComponent
GetComponent(ITypeDescriptorContext context)
291
if (component is
IComponent
)
Shared\CompModHelpers.cs (10)
295
Queue<
IComponent
> serializedComponents = new Queue<
IComponent
>();
296
foreach (
IComponent
activity in activities)
301
IComponent
component = serializedComponents.Dequeue();
319
foreach (
IComponent
childActivity in compositeActivity.Activities)
344
Queue<
IComponent
> serializedComponents = new Queue<
IComponent
>();
345
foreach (
IComponent
component in activities)
350
IComponent
component = serializedComponents.Dequeue();
368
foreach (
IComponent
childActivity in compositeActivity.Activities)
Shared\XomlSerializationHelpers.cs (3)
265
((
IComponent
)nestedActivity).Site = dummySite;
266
((
IComponent
)rootActivity).Site = dummySite;
470
public
IComponent
Component { get { return null; } }
System.WorkflowServices (7)
System\Workflow\Activities\ReceiveActivity.cs (4)
667
Type contractType = serviceOperationInfo.GetContractType(((
IComponent
)this).Site);
703
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((
IComponent
)this).Site);
779
if (((
IComponent
)this).Site == null)
787
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((
IComponent
)this).Site);
System\Workflow\Activities\SendActivity.cs (2)
458
if (((
IComponent
) this).Site == null)
466
MethodInfo methodInfo = serviceOperationInfo.GetMethodInfo(((
IComponent
) this).Site);
System\Workflow\ComponentModel\Design\FindSimilarActivitiesVerb.cs (1)
50
return designerHost.GetDesigner(activity as
IComponent
) as ActivityDesigner;