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