1 write to _selectionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1482if (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; 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); 964if (_selectionService is not null) 966_selectionService.SelectionChanged -= OnSelectionChanged; 1039if (_selectionService is not null && MenuItem is not null) 1043if (item.Visible && _selectionService.GetComponentSelected(item)) 1218_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 1227if (_selectionService.PrimarySelection is null && KeyboardHandlingService is not null) 1236selectedItem = _selectionService.PrimarySelection as ToolStripDropDownItem; 1484_selectionService.SelectionChanged += OnSelectionChanged; 1680if (_selectionService.PrimarySelection is ToolStripItem selectedItem && selectedItem != MenuItem) 1741_selectionService?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace); 1896if (_selectionService is not null && !_dummyItemAdded) 1904_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1908_selectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 2041if (MenuItem is not null && _selectionService.GetComponentSelected(MenuItem)) 2052if (_selectionService.GetComponentSelected(MenuItem) && !_dropDownSetFailed) 2141if (_selectionService is not null) 2393if (_selectionService is not null) 2405_selectionService.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace); 2409_selectionService.SetSelectedComponents(null, SelectionTypes.Replace); 2720_menuItemDesigner._selectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);