32 references to SelectionService
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
419if (ToolStrip.Visible != value && !SelectionService.GetComponentSelected(ToolStrip)) 608SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 616SelectionService.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace); 625SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 713object comp = SelectionService.PrimarySelection; 790if (SelectionService.PrimarySelection is ToolStripDropDownItem selectedItem) 818if (SelectionService.PrimarySelection is ToolStripItem toolItem) 889if (SelectionService.PrimarySelection is ToolStripItem selectedItem) 946object selectedItem = SelectionService.PrimarySelection; 1071SelectionService.SetSelectedComponents(null, SelectionTypes.Replace); 1075SelectionService.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace); 1236IComponent selectedItem = SelectionService.PrimarySelection as IComponent; 1276object primarySelection = SelectionService.PrimarySelection; 1354ICollection selComponents = SelectionService.GetSelectedComponents(); 1457SelectionService.SelectionChanging += SelSvc_SelectionChanging; 1458SelectionService.SelectionChanged += SelSvc_SelectionChanged; 1818Component selComp = SelectionService.PrimarySelection as Component; 1958SelectionService.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace); 2018if (!SelectionService.GetComponentSelected(ToolStrip)) 2045if (SelectionService.PrimarySelection is ToolStripItem curSel && curSel.IsOnOverflow) 2050SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace); 2075if (!(SelectionService.PrimarySelection is ToolStripItem curSel) || (curSel is not null && !curSel.IsOnOverflow)) 2080SelectionService.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace); 2096&& SelectionService.GetComponentSelected(item) 2178if (SelectionService.PrimarySelection is ToolStripDropDownItem selectedItem) 2198if (CheckIfItemSelected() || SelectionService.GetComponentSelected(ToolStrip)) 2210if (SelectionService.GetComponentSelected(ToolStrip)) 2344if (!showToolStrip && !SelectionService.GetComponentSelected(ToolStrip)) 2375bool showToolStrip = itemSelected || SelectionService.GetComponentSelected(ToolStrip); 2381if (SelectionService.GetComponentSelected(ToolStrip)) 2408if (_editorNode is not null && (SelectionService.PrimarySelection == ToolStrip || itemSelected)) 2521if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() || SelectionService.GetComponentSelected(ToolStrip)))