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));
406
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
431
IPropertyValueUIService pvUISvc = (IPropertyValueUIService)
GetService
(typeof(IPropertyValueUIService));
550
ISelectionService s = (ISelectionService)
GetService
(typeof(ISelectionService));
586
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
643
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
644
IExtenderProviderService exps = (IExtenderProviderService)
GetService
(typeof(IExtenderProviderService));
679
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
801
if (
GetService
(typeof(IDesignerHost)) is IDesignerHost host)
910
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
914
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
930
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
933
ISelectionService selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
950
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1036
_undoEngine =
GetService
(typeof(UndoEngine)) as UndoEngine;
1072
ISelectionService ss = (ISelectionService)
GetService
(typeof(ISelectionService));
1140
IHelpService hs = (IHelpService)
GetService
(typeof(IHelpService));
1327
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1337
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1348
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));
147
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
212
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
218
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
237
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
308
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
332
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
395
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
418
SelectionManager selMgr = (SelectionManager)
GetService
(typeof(SelectionManager));
430
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
483
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));
1156
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1469
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1533
IToolboxService tbx = (IToolboxService)
GetService
(typeof(IToolboxService));
1534
if (tbx is not null && tbx.GetSelectedToolboxItem((IDesignerHost)
GetService
(typeof(IDesignerHost))) is not null)
1580
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1633
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1700
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1748
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1777
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1872
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1939
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1969
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
2034
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
2053
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
344
_host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
347
ToolStripKeyboardHandlingService keyboardHandlingService = (ToolStripKeyboardHandlingService)
GetService
(typeof(ToolStripKeyboardHandlingService));
351
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);