Changeset 15561 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphView.cs
- Timestamp:
- 12/29/17 16:43:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking.Views/3.4/GenealogyGraphView.cs
r12225 r15561 7 7 [View("GenealogyGraphView")] 8 8 [Content(typeof(IGenealogyGraph<>), IsDefaultView = false)] 9 public partial class GenealogyGraphView<T> : ItemView where T : class, IItem {9 public partial class GenealogyGraphView<T> : ItemView where T : class, IItem { 10 10 public new IGenealogyGraph<T> Content { 11 11 get { return (IGenealogyGraph<T>)base.Content; } … … 49 49 var visualNode = (VisualGenealogyGraphNode)sender; 50 50 var graphNode = (IGenealogyGraphNode<T>)visualNode.Data; 51 if (graphNode == null) return; 52 var content = graphNode.Data; 53 if (content == null) return; 54 viewHost.Content = content; 51 if (graphNode == null || graphNode.Data == null) return; 52 viewHost.Content = graphNode.Data; 55 53 } 56 54 public virtual void graphChart_GenealogyGraphNodeDoubleClicked(object sender, MouseEventArgs arcs) { … … 60 58 #region events for configuring the behavior of the genealogy chart (trace/match, simple lineages, etc) 61 59 private void trace_checkBox_CheckedChanged(object sender, System.EventArgs e) { 62 genealogyGraphChart.TraceFragments = trace_checkBox.Checked;60 //genealogyGraphChart.TraceFragments = trace_checkBox.Checked; 63 61 } 64 62 65 63 private void simpleLineages_checkBox_CheckedChanged(object sender, System.EventArgs e) { 66 genealogyGraphChart.SimpleLineages = simpleLineages_checkBox.Checked;64 //genealogyGraphChart.SimpleLineages = simpleLineages_checkBox.Checked; 67 65 } 68 66 69 67 private void lockGraph_checkBox_CheckedChanged(object sender, System.EventArgs e) { 70 genealogyGraphChart.LockGenealogy = lockGraph_checkBox.Checked;68 //genealogyGraphChart.LockGenealogy = lockGraph_checkBox.Checked; 71 69 } 72 70 #endregion
Note: See TracChangeset
for help on using the changeset viewer.