4 overrides of Enabled
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
233
public override bool
Enabled
{
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
223
public override bool
Enabled
{
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
126
public override bool
Enabled
{
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
667
public override bool
Enabled
{
32 writes to Enabled
System.Windows.Forms (13)
winforms\Managed\System\WinForms\BindingNavigator.cs (8)
524
if (MoveFirstItem != null) moveFirstItem.
Enabled
= (position > 1);
525
if (MovePreviousItem != null) movePreviousItem.
Enabled
= (position > 1);
526
if (MoveNextItem != null) moveNextItem.
Enabled
= (position < count);
527
if (MoveLastItem != null) moveLastItem.
Enabled
= (position < count);
532
addNewItem.
Enabled
= (addNewItemUserEnabled && allowNew);
539
deleteItem.
Enabled
= (deleteItemUserEnabled && allowRemove && count > 0);
543
if (PositionItem != null) positionItem.
Enabled
= (position > 0 && count > 0);
544
if (CountItem != null) countItem.
Enabled
= (count > 0);
winforms\Managed\System\WinForms\PropertyGrid.cs (3)
2369
btnViewPropertyPages.
Enabled
= false;
2383
btnViewPropertyPages.
Enabled
= enable;
4497
btnViewPropertyPages.
Enabled
= false;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
238
base.
Enabled
= value;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
131
base.
Enabled
= value;
System.Workflow.Activities (9)
Rules\Design\Dialogs\BasicBrowserDialog.cs (7)
49
this.newRuleToolStripButton.
Enabled
= true;
271
this.editToolStripButton.
Enabled
= true;
272
this.renameToolStripButton.
Enabled
= true;
273
this.deleteToolStripButton.
Enabled
= true;
277
this.editToolStripButton.
Enabled
= false;
278
this.renameToolStripButton.
Enabled
= false;
279
this.deleteToolStripButton.
Enabled
= false;
Rules\Design\Dialogs\RuleSetDialog.cs (2)
196
this.deleteToolStripButton.
Enabled
= true;
219
this.deleteToolStripButton.
Enabled
= false;
System.WorkflowServices (10)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (10)
560
moveParameterDownButton.
Enabled
= false;
561
moveParameterUpButton.
Enabled
= false;
562
RemoveParameterButton.
Enabled
= false;
571
RemoveParameterButton.
Enabled
= true;
574
moveParameterUpButton.
Enabled
= true;
578
moveParameterDownButton.
Enabled
= true;
598
this.addParameterButton.
Enabled
= editable;
599
this.RemoveParameterButton.
Enabled
= editable;
600
this.moveParameterDownButton.
Enabled
= editable;
601
this.moveParameterUpButton.
Enabled
= editable;
50 references to Enabled
System.Windows.Forms (49)
winforms\Managed\System\WinForms\BindingNavigator.cs (4)
383
addNewItemUserEnabled = value.
Enabled
;
409
deleteItemUserEnabled = value.
Enabled
;
757
addNewItemUserEnabled = addNewItem.
Enabled
;
763
deleteItemUserEnabled = deleteItem.
Enabled
;
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3538
if (btnViewPropertyPages.
Enabled
&&
winforms\Managed\System\WinForms\ToolStrip.cs (2)
3057
if (string.IsNullOrEmpty(currentItem.Text) || !currentItem.
Enabled
) {
3107
if (!(currentItem is ToolStripMenuItem) || string.IsNullOrEmpty(currentItem.Text) || !currentItem.
Enabled
) {
winforms\Managed\System\WinForms\ToolStripButton.cs (2)
311
if (ownerItem.
Enabled
&& ownerItem.Checked) {
317
if (!ownerItem.
Enabled
&& ownerItem.Selected) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
184
arrowColor =
Enabled
? SystemColors.HighlightText : SystemColors.ControlDark;
187
arrowColor =
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
557
if (
Enabled
|| DesignMode) {
580
if (
Enabled
|| DesignMode) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (2)
116
checkColorMap[0].NewColor = ((e.Item.Selected || e.Item.Pressed) && e.Item.
Enabled
) ?
184
Color arrowColor = item.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
winforms\Managed\System\WinForms\ToolStripItem.cs (16)
2466
Animate(!DesignMode && Visible &&
Enabled
&& ParentInternal != null);
2623
if (!
Enabled
&& ParentInternal != null && !string.IsNullOrEmpty(ToolTipText)) {
2636
if (!
Enabled
&& ParentInternal != null) {
2646
if (!
Enabled
&& ParentInternal != null) {
2664
if (
Enabled
) {
2801
Debug.Assert(
Enabled
, "Who called me when I am disabled?");
2848
if (
Enabled
) {
2873
if (
Enabled
) {
2883
if (
Enabled
&& CanSelect && !Selected) {
2917
if (
Enabled
) {
3404
if (
Enabled
&& Available) {
3414
if (!CanSelect || !
Enabled
|| DesignMode) {
3435
if (ParentInternal != null && !ParentInternal.IsDropDown && !(AccessibilityImprovements.Level2 && !
Enabled
)) {
4176
return ownerItem.
Enabled
;
4253
if (!ownerItem.
Enabled
) {
4712
layoutOptions.shadowedText = !ownerItem.
Enabled
;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
228
if (base.
Enabled
&& nativeMenuHandle != IntPtr.Zero && targetWindowHandle != IntPtr.Zero) {
234
return base.
Enabled
;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (4)
510
if (item.
Enabled
) {
551
if (item.
Enabled
) {
595
e.DefaultArrowColor = (item.
Enabled
) ? SystemColors.ControlText : SystemColors.ControlDark;
666
if (!e.Item.
Enabled
) {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (3)
873
if (!e.Item.
Enabled
) {
903
if (!e.Item.
Enabled
) {
932
textColor = (item.
Enabled
) ? textColor : SystemColors.GrayText;
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
128
return base.
Enabled
;
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (4)
447
if (
Enabled
&& (keyData == Keys.Enter || (SupportsSpaceKey && keyData == Keys.Space))) {
536
if (!
Enabled
) {
622
if (
Enabled
&& Available) {
669
return owner.
Enabled
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (4)
117
if (!button.
Enabled
) {
146
if (!item.
Enabled
) {
345
Color arrowColor = item.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
459
Color arrowColor = splitButton.
Enabled
? SystemColors.ControlText : SystemColors.ControlDark;
System.WorkflowServices (1)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
399
if (e.KeyCode == Keys.Delete && this.RemoveParameterButton.
Enabled
)