Changeset 11503 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisExpressionGenealogyGraphChart.cs
- Timestamp:
- 10/26/14 22:20:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisExpressionGenealogyGraphChart.cs
r10746 r11503 20 20 #endregion 21 21 22 using System.Linq; 23 using System.Windows.Forms; 22 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 23 25 using HeuristicLab.EvolutionTracking; … … 34 36 set { base.GenealogyGraph = value; } 35 37 } 38 39 private void pictureBox_DoubleClick(object sender, MouseEventArgs e) { 40 var visualNodes = Chart.GetAllPrimitives(e.Location).Where(p => p is VisualGenealogyGraphNode).ToList(); 41 if (!visualNodes.Any()) { 42 SelectedVisualNode = null; 43 return; 44 } 45 var visualNode = visualNodes.First(); 46 47 base.OnGenealogyGraphNodeDoubleClicked(visualNode, e); 48 } 36 49 // add event handlers here for processing events coming from the tree chart 37 50 }
Note: See TracChangeset
for help on using the changeset viewer.