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