1 write to _selectionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1479if (TryGetService(out _selectionService))
26 references to _selectionService
System.Windows.Forms.Design (26)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (26)
195if (MenuItem.Equals(_selectionService.PrimarySelection)) 259if (_selectionService is not null) 261object selectedItem = _selectionService.PrimarySelection; 580if (_selectionService is not null) 603_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 608_selectionService.SetSelectedComponents(new object[] { nextItem }); 614_selectionService.SetSelectedComponents(new object[] { MenuItem.DropDownItems[index] }, SelectionTypes.Replace); 964_selectionService?.SelectionChanged -= OnSelectionChanged; 1036if (_selectionService is not null && MenuItem is not null) 1040if (item.Visible && _selectionService.GetComponentSelected(item)) 1215_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 1224if (_selectionService.PrimarySelection is null && KeyboardHandlingService is not null) 1233selectedItem = _selectionService.PrimarySelection as ToolStripDropDownItem; 1481_selectionService.SelectionChanged += OnSelectionChanged; 1677if (_selectionService.PrimarySelection is ToolStripItem selectedItem && selectedItem != MenuItem) 1738_selectionService?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace); 1893if (_selectionService is not null && !_dummyItemAdded) 1901_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1905_selectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 2035if (MenuItem is not null && _selectionService.GetComponentSelected(MenuItem)) 2046if (_selectionService.GetComponentSelected(MenuItem) && !_dropDownSetFailed) 2135if (_selectionService is not null) 2387if (_selectionService is not null) 2399_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 2403_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 2714_menuItemDesigner._selectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);