109 references to GetService
System.Windows.Forms.Design (108)
System\ComponentModel\Design\ComponentDesigner.cs (2)
385
if (component.Site is IServiceContainer sc &&
GetService
(typeof(DesignerCommandSet)) is null)
560
=>
GetService
(typeof(T)) as T;
System\Windows\Forms\Design\DocumentDesigner.cs (28)
112
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
183
IMenuCommandService menuCommandService = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
254
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
329
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
335
ToolStripAdornerWindowService toolWindow = (ToolStripAdornerWindowService)
GetService
(typeof(ToolStripAdornerWindowService));
350
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
361
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
377
IToolboxService toolbox = (IToolboxService)
GetService
(typeof(IToolboxService));
390
ISelectionService ss = (ISelectionService)
GetService
(typeof(ISelectionService));
403
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
428
IPropertyValueUIService pvUISvc = (IPropertyValueUIService)
GetService
(typeof(IPropertyValueUIService));
547
ISelectionService s = (ISelectionService)
GetService
(typeof(ISelectionService));
583
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
640
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
641
IExtenderProviderService exps = (IExtenderProviderService)
GetService
(typeof(IExtenderProviderService));
676
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
798
if (
GetService
(typeof(IDesignerHost)) is IDesignerHost host)
907
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
911
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
927
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
930
ISelectionService selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
947
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1033
_undoEngine =
GetService
(typeof(UndoEngine)) as UndoEngine;
1069
ISelectionService ss = (ISelectionService)
GetService
(typeof(ISelectionService));
1137
IHelpService hs = (IHelpService)
GetService
(typeof(IHelpService));
1324
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1334
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1345
IToolboxService toolboxService = (IToolboxService)
GetService
(typeof(IToolboxService));
System\Windows\Forms\Design\FlowPanelDesigner.cs (1)
43
SelectionManager? sm =
GetService
(typeof(SelectionManager)) as SelectionManager;
System\Windows\Forms\Design\FormDocumentDesigner.cs (3)
299
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
335
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
349
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
89
_inheritanceUI ??= (InheritanceUI)
GetService
(typeof(InheritanceUI));
System\Windows\Forms\Design\ParentControlDesigner.cs (30)
188
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
267
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
405
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
454
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
471
ISelectionService selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
690
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
896
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
999
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1063
_oleDragDropHandler ??= new OleDragDropHandler(null, (IServiceProvider)
GetService
(typeof(IDesignerHost)), this);
1076
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1209
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1247
if (
GetService
(typeof(IDesignerHost)) is not IDesignerHost host)
1285
IDesignerOptionService optSvc = (IDesignerOptionService)
GetService
(typeof(IDesignerOptionService));
1422
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1465
IMenuCommandService ms = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1491
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1578
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
1633
ISelectionService sel = (ISelectionService)
GetService
(typeof(ISelectionService));
1664
IMenuCommandService ms = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1676
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1715
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
1719
_mouseDragTool = _toolboxService.GetSelectedToolboxItem((IDesignerHost)
GetService
(typeof(IDesignerHost)));
1732
ISelectionService selsvc = (ISelectionService)
GetService
(typeof(ISelectionService));
1738
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
1807
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
1877
var selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
2061
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
2307
IDesignerHost localDesignerHost = (IDesignerHost)
GetService
(typeof(IDesignerHost));
2349
IUIService uiSvc = (IUIService)
GetService
(typeof(IUIService));
2467
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
185
var uis =
GetService
(typeof(IUIService)) as IUIService;
System\Windows\Forms\Design\TabControlDesigner.cs (12)
126
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
141
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
144
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
206
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
209
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
225
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
296
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
320
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
383
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
406
SelectionManager selMgr = (SelectionManager)
GetService
(typeof(SelectionManager));
418
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
471
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (27)
93
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
197
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
216
_undoEngine =
GetService
(typeof(UndoEngine)) as UndoEngine;
262
DesignerActionUIService actionUIService = (DesignerActionUIService)
GetService
(typeof(DesignerActionUIService));
359
IUIService uis =
GetService
(typeof(IUIService)) as IUIService;
502
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
521
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
549
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
614
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
622
IUIService uiService =
GetService
(typeof(IUIService)) as IUIService;
770
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
782
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
796
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1153
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1466
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1521
IToolboxService tbx = (IToolboxService)
GetService
(typeof(IToolboxService));
1522
if (tbx is not null && tbx.GetSelectedToolboxItem((IDesignerHost)
GetService
(typeof(IDesignerHost))) is not null)
1568
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1621
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1688
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1736
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1765
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1860
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1927
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1957
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
2022
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
2041
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
341
_host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
344
ToolStripKeyboardHandlingService keyboardHandlingService = (ToolStripKeyboardHandlingService)
GetService
(typeof(ToolStripKeyboardHandlingService));
348
ISupportInSituService inSituService = (ISupportInSituService)
GetService
(typeof(ISupportInSituService));
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2942
public new object GetService(Type serviceType) => base.
GetService
(serviceType);