- Timestamp:
- 04/21/10 15:21:34 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic
- Files:
-
- 2 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); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/SymbolicExpressionModelView.cs
r3461 r3462 57 57 } 58 58 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 59 74 protected override void OnContentChanged() { 60 75 base.OnContentChanged(); 76 UpdateTreeChart(); 77 } 78 79 private void UpdateTreeChart() { 61 80 viewHost.Content = Content.Model.SymbolicExpressionTree; 62 81 }
Note: See TracChangeset
for help on using the changeset viewer.