Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/28/10 16:43:36 (15 years ago)
Author:
gkronber
Message:

Repaired FunctionLibraryEditor. #748 (FunctionLibraryView is empty)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP/3.3/FunctionLibrary.cs

    r2222 r2701  
    4242      if (!functions.Contains(fun)) {
    4343        functions.Add(fun);
     44        fun.Changed += new EventHandler(fun_Changed);
    4445        OnChanged();
    4546      }
     
    4849    public void RemoveFunction(IFunction fun) {
    4950      functions.Remove(fun);
     51      fun.Changed -= new EventHandler(fun_Changed);
    5052
    5153      // remove the operator from the allowed sub-functions of all functions
     
    5557        }
    5658      }
     59      OnChanged();
     60    }
     61
     62    void fun_Changed(object sender, EventArgs e) {
    5763      OnChanged();
    5864    }
Note: See TracChangeset for help on using the changeset viewer.