1 write to _selectionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1479
if (TryGetService(out
_selectionService
))
26 references to _selectionService
System.Windows.Forms.Design (26)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (26)
195
if (MenuItem.Equals(
_selectionService
.PrimarySelection))
259
if (
_selectionService
is not null)
261
object selectedItem =
_selectionService
.PrimarySelection;
580
if (
_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;
1036
if (
_selectionService
is not null && MenuItem is not null)
1040
if (item.Visible &&
_selectionService
.GetComponentSelected(item))
1215
_selectionService
.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace);
1224
if (
_selectionService
.PrimarySelection is null && KeyboardHandlingService is not null)
1233
selectedItem =
_selectionService
.PrimarySelection as ToolStripDropDownItem;
1481
_selectionService
.SelectionChanged += OnSelectionChanged;
1677
if (
_selectionService
.PrimarySelection is ToolStripItem selectedItem && selectedItem != MenuItem)
1738
_selectionService
?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace);
1893
if (
_selectionService
is not null && !_dummyItemAdded)
1901
_selectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
1905
_selectionService
.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace);
2035
if (MenuItem is not null &&
_selectionService
.GetComponentSelected(MenuItem))
2046
if (
_selectionService
.GetComponentSelected(MenuItem) && !_dropDownSetFailed)
2135
if (
_selectionService
is not null)
2387
if (
_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);