75 references to GetService
System.Windows.Forms.Design (75)
System\ComponentModel\Design\ComponentDesigner.cs (8)
82IComponent? root = GetService<IDesignerHost>()?.RootComponent; 259IDesignerHost? host = GetService<IDesignerHost>(); 473IComponent? rootComponent = GetService<IDesignerHost>()?.RootComponent; 497IComponent? rootComponent = GetService<IDesignerHost>()?.RootComponent; 570service = GetService<T>(); 587=> GetService<IMenuCommandService>()?.ShowContextMenu(MenuCommands.SelectionMenu, x, y); 726=> GetService<IComponentChangeService>()?.OnComponentChanged(Component, member, oldValue, newValue); 734=> GetService<IComponentChangeService>()?.OnComponentChanging(Component, member);
System\Windows\Forms\Design\BindingSourceDesigner.cs (2)
50DataSourceProviderService? dataSourceProviderService = GetService<DataSourceProviderService>(); 59IComponentChangeService? componentChangeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
38private ISelectionService? SelectionService => _selectionService ??= _designer.GetService<ISelectionService>();
System\Windows\Forms\Design\ControlDesigner.cs (13)
73protected BehaviorService? BehaviorService => _behaviorService ??= GetService<BehaviorService>(); 931_host = GetService<IDesignerHost>(); 975_inheritanceUI = GetService<InheritanceUI>(); 1331ISelectionService? selectionService = GetService<ISelectionService>(); 1355_selectionUIService ??= GetService<ISelectionUIService>(); 1583_toolboxService ??= GetService<IToolboxService>(); 1673_host ??= GetService<IDesignerHost>(); 1770_eventService ??= GetService<IEventHandlerService>(); 1906_toolboxService ??= GetService<IToolboxService>(); 1908if (_toolboxService?.GetSelectedToolboxItem(GetService<IDesignerHost>()) is not null) 1939GetService<ISelectionService>()?.SetSelectedComponents( 2208bool handled = GetService<ToolStripKeyboardHandlingService>()?.OnContextMenu(location.X, location.Y) ?? false; 2315private IOverlayService? OverlayService => _overlayService ??= GetService<IOverlayService>();
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (2)
144_selectionService = GetService<ISelectionService>(); 148_behaviorService = GetService<BehaviorService>();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
304IComponentChangeService? componentChangeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
125internal ISelectionService SelectionService => GetService<ISelectionService>();
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
130GetService<IDesignerHost>(); 235IComponentChangeService changeService = GetService<IComponentChangeService>(); 289IDesignerHost host = GetService<IDesignerHost>(); 312_toolStripAdornerWindowService ??= GetService<ToolStripAdornerWindowService>(); 444GetService<BehaviorService>()?.SyncSelection();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
145GetService<IComponentChangeService>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2134var changeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
58_selectionManager ??= GetService<SelectionManager>();
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
319var selMgr = GetService<SelectionManager>(); 358SelectionManager? selMgr = GetService<SelectionManager>();
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
390_selectionService ??= GetService<ISelectionService>();
System\Windows\Forms\Design\ToolStripDesigner.cs (10)
391internal ISelectionService SelectionService => _selectionService ??= GetService<ISelectionService>(); 424_keyboardHandlingService = GetService<ToolStripKeyboardHandlingService>(); 678GetService<SelectionManager>().BodyGlyphAdorner.Glyphs.Insert(0, bodyGlyphForItem); 1439_toolStripAdornerWindowService = GetService<ToolStripAdornerWindowService>(); 1450if (GetService<ToolStripKeyboardHandlingService>() is null) 1456if (GetService<ISupportInSituService>() is null) 2080GetService<BehaviorService>()?.ProcessPaintMessage(r); 2128_toolboxService ??= GetService<IToolboxService>(); 2199SelectionManager selectionManager = GetService<SelectionManager>(); 2470GetService<IUIService>().ShowError(ex.Message);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (4)
145GetService<BehaviorService>()?.Invalidate(bounds); 315GetService<ToolStripAdornerWindowService>()?.Invalidate(); 700GetService<SelectionManager>()?.BodyGlyphAdorner.Glyphs.Insert(0, _dummyToolStripGlyph); 705GetService<ToolStripKeyboardHandlingService>().SelectedDesignerControl = selectedItem;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (9)
196GetService<BehaviorService>()?.SyncSelection(); 326SelectionManager selectionManager = GetService<SelectionManager>(); 327BehaviorService behaviorService = GetService<BehaviorService>(); 333IDesignerHost designerHost = GetService<IDesignerHost>(); 578Rectangle parentBounds = GetService<BehaviorService>().ControlRectInAdornerWindow((Control)ImmediateParent); 1010GetService<SelectionManager>().Refresh(); 1014GetService<BehaviorService>().Invalidate(parentDropDown.Bounds); 1222BehaviorService behaviorService = GetService<BehaviorService>(); 1275SelectionManager selectionManager = GetService<SelectionManager>();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (12)
316=> _keyboardHandlingService ??= GetService<ToolStripKeyboardHandlingService>(); 353private IComponentChangeService ComponentChangeService => _componentChangeService ??= GetService<IComponentChangeService>(); 703GetService<SelectionManager>().NeedRefresh = false; 837GetService<IUIService>().ShowError(ex.Message); 1095GetService<BehaviorService>()?.ProcessPaintMessage(r); 1118GetService<BehaviorService>()?.Invalidate(); 1204GetService<BehaviorService>()?.Invalidate(invalidatingRegion); 1534_toolStripAdornerWindowService = GetService<ToolStripAdornerWindowService>(); 1535_designerHost = GetService<IDesignerHost>(); 1627GetService<SelectionManager>()?.Refresh(); 1630GetService<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds); 1687IComponentChangeService changeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
406SelectionManager? selectionManager = GetService<SelectionManager>();