18 references to GetService
System.Windows.Forms.Design (18)
System\Windows\Forms\Design\CommandSet.cs (18)
228
protected BehaviorService? BehaviorService => _behaviorService ??=
GetService
<BehaviorService>();
234
protected IMenuCommandService? MenuService => _menuService ??=
GetService
<IMenuCommandService>();
685
if (TryGetService(out IToolboxService? tbx) && tbx.GetSelectedToolboxItem(
GetService
<IDesignerHost>()) is not null)
986
IDesignerHost? host =
GetService
<IDesignerHost>();
1131
IDesignerHost? host =
GetService
<IDesignerHost>();
1254
IDesignerHost? host =
GetService
<IDesignerHost>();
1404
IDesignerSerializationService? ds =
GetService
<IDesignerSerializationService>();
1449
IDesignerSerializationService? ds =
GetService
<IDesignerSerializationService>();
1468
IComponentChangeService? changeService =
GetService
<IComponentChangeService>();
1593
IComponentChangeService? changeService =
GetService
<IComponentChangeService>();
1854
ComponentTray? tray =
GetService
<ComponentTray>();
2133
tray ??=
GetService
<ComponentTray>();
2315
IDesignerHost? host =
GetService
<IDesignerHost>();
2382
IDesignerHost? host =
GetService
<IDesignerHost>();
2520
IDesignerHost? host =
GetService
<IDesignerHost>();
2899
IDesignerHost? designerHost =
GetService
<IDesignerHost>();
3128
IDesignerHost host =
GetService
<IDesignerHost>()!;
3342
IDesignerHost? host =
GetService
<IDesignerHost>();