1 write to primarySelection
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\CommandSet.cs (1)
2907primarySelection = SelectionService.PrimarySelection as IComponent;
8 references to primarySelection
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\CommandSet.cs (7)
963Point primaryLocation = GetLocation(primarySelection!); 964Size primarySize = GetSize(primarySelection!); 990if (comp == primarySelection) 3074&& primarySelection is not null 3075&& host.GetDesigner(primarySelection) is ParentControlDesigner) 3079InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(primarySelection)[typeof(InheritanceAttribute)]; 3115cmd.Enabled = primarySelection is not null;
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1226cmd.Enabled = controlsOnlySelection && selCount > 1 && primarySelection is not null;