77 references to GetService
System.Windows.Forms.Design (77)
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>(); 946_host = GetService<IDesignerHost>(); 990_inheritanceUI = GetService<InheritanceUI>(); 1346ISelectionService? selectionService = GetService<ISelectionService>(); 1370_selectionUIService ??= GetService<ISelectionUIService>(); 1598_toolboxService ??= GetService<IToolboxService>(); 1688_host ??= GetService<IDesignerHost>(); 1783_eventService ??= GetService<IEventHandlerService>(); 1909_toolboxService ??= GetService<IToolboxService>(); 1911if (_toolboxService?.GetSelectedToolboxItem(GetService<IDesignerHost>()) is not null) 1942GetService<ISelectionService>()?.SetSelectedComponents( 2211bool handled = GetService<ToolStripKeyboardHandlingService>()?.OnContextMenu(location.X, location.Y) ?? false; 2318private 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)
143GetService<IComponentChangeService>().OnComponentChanged(Component);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2135var 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 (12)
375internal ISelectionService SelectionService => _selectionService ??= GetService<ISelectionService>(); 378GetService<DesignerOptionService>() is not WindowsFormsDesignerOptionService dos 396_keyboardHandlingService = GetService<ToolStripKeyboardHandlingService>(); 636GetService<SelectionManager>().BodyGlyphAdorner.Glyphs.Insert(0, bodyGlyphForItem); 1424_undoEngine ??= GetService<UndoEngine>(); 1455_toolStripAdornerWindowService = GetService<ToolStripAdornerWindowService>(); 1474if (GetService<ToolStripKeyboardHandlingService>() is null) 1480if (GetService<ISupportInSituService>() is null) 2104GetService<BehaviorService>()?.ProcessPaintMessage(r); 2152_toolboxService ??= GetService<IToolboxService>(); 2223SelectionManager selectionManager = GetService<SelectionManager>(); 2477GetService<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>(); 693GetService<SelectionManager>().NeedRefresh = false; 824GetService<IUIService>().ShowError(ex.Message); 1079GetService<BehaviorService>()?.ProcessPaintMessage(r); 1102GetService<BehaviorService>()?.Invalidate(); 1188GetService<BehaviorService>()?.Invalidate(invalidatingRegion); 1518_toolStripAdornerWindowService = GetService<ToolStripAdornerWindowService>(); 1519_designerHost = GetService<IDesignerHost>(); 1611GetService<SelectionManager>()?.Refresh(); 1614GetService<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds); 1671IComponentChangeService changeService = GetService<IComponentChangeService>();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
400SelectionManager? selectionManager = GetService<SelectionManager>();