112 references to GetService
System.Windows.Forms.Design (111)
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 (30)
115
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
186
IMenuCommandService menuCommandService = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
262
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
342
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
348
ToolStripAdornerWindowService toolWindow = (ToolStripAdornerWindowService)
GetService
(typeof(ToolStripAdornerWindowService));
363
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
374
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
390
IToolboxService toolbox = (IToolboxService)
GetService
(typeof(IToolboxService));
403
ISelectionService ss = (ISelectionService)
GetService
(typeof(ISelectionService));
425
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
465
IPropertyValueUIService pvUISvc = (IPropertyValueUIService)
GetService
(typeof(IPropertyValueUIService));
590
ISelectionService s = (ISelectionService)
GetService
(typeof(ISelectionService));
626
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
683
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
684
IExtenderProviderService exps = (IExtenderProviderService)
GetService
(typeof(IExtenderProviderService));
719
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
841
if (
GetService
(typeof(IDesignerHost)) is IDesignerHost host)
880
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
912
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
964
ISplitWindowService sws = (ISplitWindowService)
GetService
(typeof(ISplitWindowService));
968
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
984
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
987
ISelectionService selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
1004
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1090
_undoEngine =
GetService
(typeof(UndoEngine)) as UndoEngine;
1126
ISelectionService ss = (ISelectionService)
GetService
(typeof(ISelectionService));
1194
IHelpService hs = (IHelpService)
GetService
(typeof(IHelpService));
1381
IMenuCommandService mcs = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1391
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1402
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));
1490
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1577
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
1632
ISelectionService sel = (ISelectionService)
GetService
(typeof(ISelectionService));
1663
IMenuCommandService ms = (IMenuCommandService)
GetService
(typeof(IMenuCommandService));
1675
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1714
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
1718
_mouseDragTool = _toolboxService.GetSelectedToolboxItem((IDesignerHost)
GetService
(typeof(IDesignerHost)));
1731
ISelectionService selsvc = (ISelectionService)
GetService
(typeof(ISelectionService));
1737
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
1812
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
1882
var selSvc = (ISelectionService)
GetService
(typeof(ISelectionService));
2066
_toolboxService ??= (IToolboxService)
GetService
(typeof(IToolboxService));
2312
IDesignerHost localDesignerHost = (IDesignerHost)
GetService
(typeof(IDesignerHost));
2354
IUIService uiSvc = (IUIService)
GetService
(typeof(IUIService));
2472
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)
131
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
146
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
152
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
217
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
223
IComponentChangeService cs = (IComponentChangeService)
GetService
(typeof(IComponentChangeService));
242
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
313
IEventHandlerService eventSvc = (IEventHandlerService)
GetService
(typeof(IEventHandlerService));
337
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
399
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
422
SelectionManager selMgr = (SelectionManager)
GetService
(typeof(SelectionManager));
434
ISelectionService svc = (ISelectionService)
GetService
(typeof(ISelectionService));
487
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;
617
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
625
IUIService uiService =
GetService
(typeof(IUIService)) as IUIService;
773
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
785
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
799
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1159
IDesignerHost host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
1472
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1536
IToolboxService tbx = (IToolboxService)
GetService
(typeof(IToolboxService));
1537
if (tbx is not null && tbx.GetSelectedToolboxItem((IDesignerHost)
GetService
(typeof(IDesignerHost))) is not null)
1583
ISelectionService selSvc =
GetService
(typeof(ISelectionService)) as ISelectionService;
1636
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1703
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1751
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1780
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1875
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
1942
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
1979
IDesignerHost host =
GetService
(typeof(IDesignerHost)) as IDesignerHost;
2044
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
2063
IUIService uiService = (IUIService)
GetService
(typeof(IUIService));
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
397
if (
GetService
(typeof(DesignerOptionService)) is WindowsFormsDesignerOptionService dos)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
350
_host = (IDesignerHost)
GetService
(typeof(IDesignerHost));
353
ToolStripKeyboardHandlingService keyboardHandlingService = (ToolStripKeyboardHandlingService)
GetService
(typeof(ToolStripKeyboardHandlingService));
357
ISupportInSituService inSituService = (ISupportInSituService)
GetService
(typeof(ISupportInSituService));
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2940
public new object GetService(Type serviceType) => base.
GetService
(serviceType);