Changeset 13255


Ignore:
Timestamp:
11/18/15 15:16:13 (3 years ago)
Author:
mkommend
Message:

#2442: Automatically disabled variable condition symbols if no variable names are present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/VariableCondition.cs

    r12012 r13255  
    149149          OnChanged(EventArgs.Empty);
    150150        }
     151      }
     152    }
     153
     154    public override bool Enabled {
     155      get {
     156        if (variableNames.Count == 0) return false;
     157        return base.Enabled;
     158      }
     159      set {
     160        if (variableNames.Count == 0) base.Enabled = false;
     161        else base.Enabled = value;
    151162      }
    152163    }
Note: See TracChangeset for help on using the changeset viewer.