Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/11 11:16:38 (13 years ago)
Author:
mkommend
Message:

#1535: Fixed enabling of the clear value button in ValueParameterView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs

    r5837 r6262  
    104104      base.SetEnabledStateOfControls();
    105105      setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly;
    106       clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter) && !ReadOnly;
     106      clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter) && !(Content is ValueParameter<T>) && !ReadOnly;
    107107      showInRunCheckBox.Enabled = Content != null && !ReadOnly;
    108108    }
     
    114114        SetDataTypeTextBoxText();
    115115        setValueButton.Enabled = Content != null && !(Content is IFixedValueParameter) && !ReadOnly;
    116         clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter<T>) && !ReadOnly;
     116        clearValueButton.Enabled = Content != null && Content.Value != null && !(Content is IFixedValueParameter<T>) && !(Content is ValueParameter<T>) && !ReadOnly;
    117117        valueViewHost.ViewType = null;
    118118        valueViewHost.Content = Content != null ? Content.Value : null;
Note: See TracChangeset for help on using the changeset viewer.