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)
487if (_context?.Instance is BindingSource instance && _designerHost is not null) 489BindingSourceDesigner? designer = _designerHost.GetDesigner(instance) as BindingSourceDesigner; 529if (_designerHost is not null && _designerHost.RootComponent is not null && _designerHost.RootComponent.Site is not null) 531_instancesNode = new InstancesNode(_designerHost?.RootComponent.Site.Name); 594if (container is null && _designerHost is not null) 596container = _designerHost.Container; 1246if (_designerHost is null || _dataSourceProviderService is null) 1278string? uniqueSiteName = DesignerUtils.GetUniqueSiteName(_designerHost, bindingSourceName); 1280DesignerTransaction? trans = _designerHost.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName)); 1287_designerHost.Container.Add(bs, uniqueSiteName); 1330if (_designerHost is null || _dataSourceProviderService is null) 1427IContainer? container = _designerHost?.Container; 1443return _dataSourceProviderService?.AddDataSourceInstance(_designerHost, dataSourceDescriptor);