1 write to _selectionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1512if (TryGetService(out _selectionService))
27 references to _selectionService
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (27)
195if (MenuItem.Equals(_selectionService.PrimarySelection)) 259if (_selectionService is not null) 261object selectedItem = _selectionService.PrimarySelection; 589if (_selectionService is not null) 612_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 617_selectionService.SetSelectedComponents(new object[] { nextItem }); 623_selectionService.SetSelectedComponents(new object[] { MenuItem.DropDownItems[index] }, SelectionTypes.Replace); 985if (_selectionService is not null) 987_selectionService.SelectionChanged -= OnSelectionChanged; 1066if (_selectionService is not null && MenuItem is not null) 1070if (item.Visible && _selectionService.GetComponentSelected(item)) 1245_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 1254if (_selectionService.PrimarySelection is null && KeyboardHandlingService is not null) 1263selectedItem = _selectionService.PrimarySelection as ToolStripDropDownItem; 1514_selectionService.SelectionChanged += OnSelectionChanged; 1710if (_selectionService.PrimarySelection is ToolStripItem selectedItem && selectedItem != MenuItem) 1771_selectionService?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace); 1929if (_selectionService is not null && !_dummyItemAdded) 1937_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1941_selectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 2077if (MenuItem is not null && _selectionService.GetComponentSelected(MenuItem)) 2088if (_selectionService.GetComponentSelected(MenuItem) && !_dropDownSetFailed) 2177if (_selectionService is not null) 2438if (_selectionService is not null) 2450_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 2454_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 2771_menuItemDesigner._selectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);