1 write to _selectionService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1512
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;
589
if (
_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);
985
if (
_selectionService
is not null)
987
_selectionService
.SelectionChanged -= OnSelectionChanged;
1066
if (
_selectionService
is not null && MenuItem is not null)
1070
if (item.Visible &&
_selectionService
.GetComponentSelected(item))
1245
_selectionService
.SetSelectedComponents(new object[] { MenuItem }, SelectionTypes.Replace);
1254
if (
_selectionService
.PrimarySelection is null && KeyboardHandlingService is not null)
1263
selectedItem =
_selectionService
.PrimarySelection as ToolStripDropDownItem;
1514
_selectionService
.SelectionChanged += OnSelectionChanged;
1710
if (
_selectionService
.PrimarySelection is ToolStripItem selectedItem && selectedItem != MenuItem)
1771
_selectionService
?.SetSelectedComponents(new IComponent[] { newItem }, SelectionTypes.Replace);
1929
if (
_selectionService
is not null && !_dummyItemAdded)
1937
_selectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
1941
_selectionService
.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace);
2077
if (MenuItem is not null &&
_selectionService
.GetComponentSelected(MenuItem))
2088
if (
_selectionService
.GetComponentSelected(MenuItem) && !_dropDownSetFailed)
2177
if (
_selectionService
is not null)
2438
if (
_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);