Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8476 for trunk


Ignore:
Timestamp:
08/13/12 16:03:46 (12 years ago)
Author:
mkommend
Message:

#1815: Corrected event registration in SymbolicExpressionGrammar and updated the variable view.

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolView.Designer.cs

    r7967 r8476  
    175175    protected System.Windows.Forms.Label initialFrequencyLabel;
    176176    protected System.Windows.Forms.TextBox initialFrequencyTextBox;
    177     private System.Windows.Forms.CheckBox enabledCheckBox;
     177    protected System.Windows.Forms.CheckBox enabledCheckBox;
    178178    protected System.Windows.Forms.Label minimumArityLabel;
    179179    protected System.Windows.Forms.Label maximumArityLabel;
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs

    r7733 r8476  
    181181
    182182    #region IStatefulItem methods
    183     void IStatefulItem.InitializeState()
    184     {
     183    void IStatefulItem.InitializeState() {
    185184      ReadOnly = false;
    186185    }
     
    245244        var groupSymbol = s as GroupSymbol;
    246245        if (groupSymbol != null) RegisterGroupSymbolEvents(groupSymbol);
    247         else symbol.Changed += new EventHandler(Symbol_Changed);
     246        else s.Changed += new EventHandler(Symbol_Changed);
    248247      }
    249248    }
     
    255254        var groupSymbol = s as GroupSymbol;
    256255        if (groupSymbol != null) DeregisterGroupSymbolEvents(groupSymbol);
    257         else symbol.Changed -= new EventHandler(Symbol_Changed);
     256        else s.Changed -= new EventHandler(Symbol_Changed);
    258257      }
    259258    }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs

    r8103 r8476  
    9292    protected override void SetEnabledStateOfControls() {
    9393      base.SetEnabledStateOfControls();
     94      enabledCheckBox.Enabled = Content != null && Content.VariableNames.Any() && !Locked && !ReadOnly;
    9495      weightInitializationMuTextBox.Enabled = Content != null;
    9596      weightInitializationMuTextBox.ReadOnly = ReadOnly;
Note: See TracChangeset for help on using the changeset viewer.