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>(); 1768_eventService ??= GetService<IEventHandlerService>(); 1894_toolboxService ??= GetService<IToolboxService>(); 1896if (_toolboxService?.GetSelectedToolboxItem(GetService<IDesignerHost>()) is not null) 1927GetService<ISelectionService>()?.SetSelectedComponents( 2196bool handled = GetService<ToolStripKeyboardHandlingService>()?.OnContextMenu(location.X, location.Y) ?? false; 2303private 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)
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 (10)
391internal ISelectionService SelectionService => _selectionService ??= GetService<ISelectionService>(); 424_keyboardHandlingService = GetService<ToolStripKeyboardHandlingService>(); 672GetService<SelectionManager>().BodyGlyphAdorner.Glyphs.Insert(0, bodyGlyphForItem); 1432_toolStripAdornerWindowService = GetService<ToolStripAdornerWindowService>(); 1443if (GetService<ToolStripKeyboardHandlingService>() is null) 1449if (GetService<ISupportInSituService>() is null) 2061GetService<BehaviorService>()?.ProcessPaintMessage(r); 2109_toolboxService ??= GetService<IToolboxService>(); 2180SelectionManager selectionManager = GetService<SelectionManager>(); 2451GetService<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)
406SelectionManager? selectionManager = GetService<SelectionManager>();