2 writes to _component
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ComponentDesigner.cs (2)
378_component = component; 461_component = null;
10 references to _component
System.Windows.Forms.Design (10)
System\ComponentModel\Design\ComponentDesigner.cs (10)
38if (_component?.Site is { } site) 40PropertyDescriptor? defaultProperty = TypeDescriptor.GetDefaultProperty(_component); 46if (defaultProperty.TryGetValue(_component, out string? currentValue) && string.IsNullOrEmpty(currentValue)) 48defaultProperty.SetValue(_component, site.Name); 172public IComponent Component => _component ?? throw new InvalidOperationException("Designer is not initialized"); 177[MemberNotNullWhen(true, nameof(_component))] 178private protected bool HasComponent => _component is not null; 365_component is not null, 368return TryGetService(out IDesignerHost? host) && _component == host.RootComponent; 557protected virtual object? GetService(Type serviceType) => _component?.Site?.GetService(serviceType);