Changeset 3462 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SimplifiedSymbolicExpressionModelView.cs
- Timestamp:
- 04/21/10 15:21:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SimplifiedSymbolicExpressionModelView.cs
r3461 r3462 44 44 public new SymbolicRegressionSolution Content { 45 45 get { return (SymbolicRegressionSolution)base.Content; } 46 set { base.Content = value;}46 set { base.Content = value; } 47 47 } 48 48 … … 58 58 } 59 59 60 protected override void RegisterContentEvents() { 61 base.RegisterContentEvents(); 62 Content.ModelChanged += new EventHandler(Content_ModelChanged); 63 } 64 65 protected override void DeregisterContentEvents() { 66 base.DeregisterContentEvents(); 67 Content.ModelChanged -= new EventHandler(Content_ModelChanged); 68 } 69 70 void Content_ModelChanged(object sender, EventArgs e) { 71 UpdateTreeChart(); 72 } 73 60 74 protected override void OnContentChanged() { 61 75 base.OnContentChanged(); 76 UpdateTreeChart(); 77 } 78 79 private void UpdateTreeChart() { 62 80 var simplifier = new SymbolicSimplifier(); 63 81 var simplifiedTree = simplifier.Simplify(Content.Model.SymbolicExpressionTree);
Note: See TracChangeset
for help on using the changeset viewer.