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