53 writes to Enabled
Microsoft.VisualStudio.LanguageServices (7)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (3)
171command.Enabled = false; 175command.Enabled = true; 294command.Enabled = enabled;
EditorConfigSettings\SettingsEditorPane.cs (2)
184command.Enabled = true; 195command.Enabled = true;
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
92command.Enabled = enabled;
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (1)
104command.Enabled = enabled;
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5195reset.Enabled = gridEntry is not null && gridEntry.CanResetPropertyValue();
System.Windows.Forms.Design (40)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
551menuCommand.Enabled = false;
System\Windows\Forms\Design\Behavior\DesignerActionKeyboardBehavior.cs (1)
46Enabled = false
System\Windows\Forms\Design\CommandSet.CommandSetItem.StatusState.cs (1)
46item.Enabled = _statusFlags.HasFlag(StatusFlag.Enabled);
System\Windows\Forms\Design\CommandSet.cs (9)
2970cmd.Enabled = true; 2980cmd.Enabled = selCount > 0; 3016cmd.Enabled = enable; 3043cmd.Enabled = false; 3058cmd.Enabled = false; 3089cmd.Enabled = false; 3115cmd.Enabled = enable; 3121cmd.Enabled = primarySelection is not null; 3130cmd.Enabled = host.Container.Components.Count > 1;
System\Windows\Forms\Design\ControlCommandSet.cs (12)
1147cmd.Enabled = enabled; 1157cmd.Enabled = (selCount > 0) && controlsOnlySelection; 1169cmd.Enabled = (selCount > 0) && controlsOnlySelection && (!BehaviorService.UseSnapLines); 1178cmd.Enabled = false; 1182cmd.Enabled = controlsOnlySelection; 1221cmd.Enabled = controlsOnlySelection && selCount > 1; 1232cmd.Enabled = controlsOnlySelection && selCount > 1 && primarySelection is not null; 1244cmd.Enabled = CheckSelectionParenting(); 1260cmd.Enabled = true; 1277cmd.Enabled = controlsOnlySelection; 1334cmd.Enabled = enable; 1338cmd.Enabled = false;
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (4)
303Enabled = false 313Enabled = false 323Enabled = false 333Enabled = false
System\Windows\Forms\Design\ParentControlDesigner.EscapeHandler.cs (2)
49cmd.Enabled = true; 53cmd.Enabled = false;
System\Windows\Forms\Design\TabControlDesigner.cs (2)
75_removeVerb.Enabled = Control.Controls.Count > 0; 118_removeVerb.Enabled = Control.Controls.Count > 0;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
275_removeColVerb.Enabled = colState; 284_removeRowVerb.Enabled = rowState;
System\Windows\Forms\Design\TabOrder.cs (2)
703cmd.Enabled = _commands[i].Enabled; 714cmd.Enabled = false;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
234newCommand.Enabled = !_templateNodeActive; 252newCommand.Enabled = !_templateNodeActive;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
195_addCommands[i].Enabled = false; 1264cmd.Enabled = false;
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\DesignerActionServiceTests.cs (5)
478DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb }; 522DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb }; 547verb.Enabled = false; 549verb.Enabled = true; 578DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb };
15 references to Enabled
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
364if (menuCommand?.Enabled is true)
Microsoft.VisualStudio.LanguageServices (3)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (1)
292if (command.Enabled != enabled)
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
90if (command.Enabled != enabled)
UnusedReferences\RemoveUnusedReferencesCommandHandler.cs (1)
102if (command.Enabled != enabled)
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
238if (!_verbs[i].Enabled)
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionService.cs (1)
205if (verb is { Enabled: true, Visible: true })
System\Windows\Forms\Design\CommandSet.CommandSetItem.StatusState.cs (1)
60if (item.Enabled)
System\Windows\Forms\Design\CommandSet.cs (1)
3027if (((MenuCommand)sender!).Enabled)
System\Windows\Forms\Design\ControlCommandSet.cs (1)
1242if (cmd.Enabled)
System\Windows\Forms\Design\DesignerActionVerbList.cs (1)
23if (_verbs[i].Visible && _verbs[i].Enabled && _verbs[i].Supported)
System\Windows\Forms\Design\DesignerVerbToolStripMenuItem.cs (1)
27Enabled = _verb.Enabled;
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
53Enabled = _menuCommand.Enabled;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
273if (_removeColVerb.Enabled != colState) 282if (_removeRowVerb.Enabled != rowState)
System\Windows\Forms\Design\TabOrder.cs (1)
703cmd.Enabled = _commands[i].Enabled;