33 references to SelectionService
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
419
if (ToolStrip.Visible != value && !
SelectionService
.GetComponentSelected(ToolStrip))
605
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
613
SelectionService
.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace);
622
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
704
object comp =
SelectionService
.PrimarySelection;
781
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
809
if (
SelectionService
.PrimarySelection is ToolStripItem toolItem)
880
if (
SelectionService
.PrimarySelection is ToolStripItem selectedItem)
937
object selectedItem =
SelectionService
.PrimarySelection;
1059
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
1063
SelectionService
.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace);
1212
IComponent selectedItem =
SelectionService
.PrimarySelection as IComponent;
1252
object primarySelection =
SelectionService
.PrimarySelection;
1330
ICollection selComponents =
SelectionService
.GetSelectedComponents();
1433
SelectionService
.SelectionChanging += SelSvc_SelectionChanging;
1434
SelectionService
.SelectionChanged += SelSvc_SelectionChanged;
1794
Component selComp =
SelectionService
.PrimarySelection as Component;
1934
SelectionService
.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
1991
if (!
SelectionService
.GetComponentSelected(ToolStrip))
2018
if (
SelectionService
.PrimarySelection is ToolStripItem curSel && curSel.IsOnOverflow)
2023
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2048
if (!(
SelectionService
.PrimarySelection is ToolStripItem curSel) || (curSel is not null && !curSel.IsOnOverflow))
2053
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2069
&&
SelectionService
.GetComponentSelected(item)
2151
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
2171
if (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip))
2183
if (
SelectionService
.GetComponentSelected(ToolStrip))
2317
if (!showToolStrip && !
SelectionService
.GetComponentSelected(ToolStrip))
2348
bool showToolStrip = itemSelected ||
SelectionService
.GetComponentSelected(ToolStrip);
2354
if (
SelectionService
.GetComponentSelected(ToolStrip))
2381
if (_editorNode is not null && (
SelectionService
.PrimarySelection == ToolStrip || itemSelected))
2494
if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip)))
System.Windows.Forms.Design.Tests (1)
ToolStripDesignerTests.cs (1)
67
Assert.NotNull(toolStripDesigner.
SelectionService
);