Changeset 18099 for branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.cs
- Timestamp:
- 12/01/21 10:43:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/GraphicalSymbolicDataAnalysisModelView.cs
r17180 r18099 20 20 #endregion 21 21 22 using System.Drawing; 22 23 using System.Windows.Forms; 23 24 using HeuristicLab.MainForm; … … 40 41 protected override void OnContentChanged() { 41 42 base.OnContentChanged(); 42 symbolicExpressionTreeView.Content = null; 43 if (Content != null) 44 symbolicExpressionTreeView.Content = Content.SymbolicExpressionTree; 43 symbolicExpressionTreeChart.Tree = null; 44 if (Content != null) { 45 symbolicExpressionTreeChart.Tree = Content.SymbolicExpressionTree; 46 RepaintNodes(); 47 } 48 } 49 50 protected void RepaintNodes() { 51 var tree = symbolicExpressionTreeChart.Tree; 52 if (tree != null) { 53 foreach (var n in tree.IterateNodesPrefix()) { 54 if (n.Symbol is SubFunctionSymbol) { 55 var visualNode = symbolicExpressionTreeChart.GetVisualSymbolicExpressionTreeNode(n); 56 visualNode.FillColor = Color.LightCyan; 57 visualNode.LineColor = Color.SlateGray; 58 } 59 } 60 symbolicExpressionTreeChart.RepaintNodes(); 61 } 45 62 } 46 63 }
Note: See TracChangeset
for help on using the changeset viewer.