Free cookie consent management tool by TermsFeed Policy Generator

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.