2 writes to _designerHost
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
388
_designerHost
= _serviceProvider.GetService<IDesignerHost>();
442
_designerHost
= null;
15 references to _designerHost
System.Windows.Forms.Design (15)
System\Windows\Forms\Design\DesignBindingPicker.cs (15)
487
if (_context?.Instance is BindingSource instance &&
_designerHost
is not null)
489
BindingSourceDesigner? designer =
_designerHost
.GetDesigner(instance) as BindingSourceDesigner;
529
if (
_designerHost
is not null &&
_designerHost
.RootComponent is not null &&
_designerHost
.RootComponent.Site is not null)
531
_instancesNode = new InstancesNode(
_designerHost
?.RootComponent.Site.Name);
594
if (container is null &&
_designerHost
is not null)
596
container =
_designerHost
.Container;
1246
if (
_designerHost
is null || _dataSourceProviderService is null)
1278
string? uniqueSiteName = DesignerUtils.GetUniqueSiteName(
_designerHost
, bindingSourceName);
1280
DesignerTransaction? trans =
_designerHost
.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
1287
_designerHost
.Container.Add(bs, uniqueSiteName);
1330
if (
_designerHost
is null || _dataSourceProviderService is null)
1427
IContainer? container =
_designerHost
?.Container;
1443
return _dataSourceProviderService?.AddDataSourceInstance(
_designerHost
, dataSourceDescriptor);