Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/SymbolicDataAnalysisGenealogyView.cs @ 10285

Last change on this file since 10285 was 10285, checked in by bburlacu, 10 years ago

#1772: Added SymbolicDataAnalysisGenealogyView, updated generic analyzer and operators.

File size: 2.0 KB
Line 
1using System.Windows.Forms;
2using HeuristicLab.Core.Views;
3using HeuristicLab.MainForm;
4
5using TGraph = HeuristicLab.EvolutionTracking.GenealogyGraph
6                <
7                  HeuristicLab.EvolutionTracking.GenealogyGraphNode<HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ISymbolicExpressionTree>,
8                  HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ISymbolicExpressionTree
9                >;
10
11namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views {
12  [View("SymbolicDataAnalysisGenealogyView")]
13  [Content(typeof(TGraph), IsDefaultView = false)]
14  public sealed partial class SymbolicDataAnalysisGenealogyView : ItemView {
15    public new TGraph Content {
16      get { return (TGraph)base.Content; }
17      set { base.Content = value; }
18    }
19
20    public SymbolicDataAnalysisGenealogyView() {
21      InitializeComponent();
22    }
23
24    protected override void DeregisterContentEvents() {
25      // TODO: Deregister your event handlers here
26      base.DeregisterContentEvents();
27    }
28
29    protected override void RegisterContentEvents() {
30      base.RegisterContentEvents();
31      // TODO: Register your event handlers here
32    }
33
34    #region Event Handlers (Content)
35    // TODO: Put event handlers of the content here
36    #endregion
37
38    protected override void OnContentChanged() {
39      base.OnContentChanged();
40      if (Content == null) {
41        // TODO: Add code when content has been changed and is null
42      } else {
43        genealogyGraphChart1.GenealogyGraph = Content;
44        // TODO: Add code when content has been changed and is not null
45      }
46    }
47
48
49    protected override void SetEnabledStateOfControls() {
50      base.SetEnabledStateOfControls();
51      // TODO: Enable or disable controls based on whether the content is null or the view is set readonly
52    }
53
54    #region Event Handlers (child controls)
55    // TODO: Put event handlers of child controls here.
56    #endregion
57  }
58}
Note: See TracBrowser for help on using the repository browser.