Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Problems.ExternalEvaluation.Views/3.3/ExternalEvaluationProcessDriverView.cs @ 3864

Last change on this file since 3864 was 3864, checked in by abeham, 14 years ago

#866

  • Removed warning in ExternalEvaluationProblem
  • Added views project for ExternalEvaluation
  • Fixed class name of ExternalEvaluationProcessDriver
File size: 2.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.ComponentModel;
25using System.Drawing;
26using System.Data;
27using System.Linq;
28using System.Text;
29using System.Windows.Forms;
30using HeuristicLab.Core.Views;
31using HeuristicLab.MainForm;
32
33namespace HeuristicLab.Problems.ExternalEvaluation.Views {
34  [View("ExternalEvaluation ProcessDriver View")]
35  [Content(typeof(ExternalEvaluationProcessDriver), IsDefaultView = true)]
36  public sealed partial class ExternalEvaluationProcessDriverView : NamedItemView {
37    public new ExternalEvaluationProcessDriver Content {
38      get { return (ExternalEvaluationProcessDriver)base.Content; }
39      set { base.Content = value; }
40    }
41
42    public ExternalEvaluationProcessDriverView() {
43      InitializeComponent();
44    }
45
46    protected override void DeregisterContentEvents() {
47      // TODO: Deregister your event handlers here
48      base.DeregisterContentEvents();
49    }
50
51    protected override void RegisterContentEvents() {
52      base.RegisterContentEvents();
53      // TODO: Register your event handlers here
54    }
55
56    #region Event Handlers (Content)
57    // TODO: Put event handlers of the content here
58    #endregion
59
60    protected override void OnContentChanged() {
61      base.OnContentChanged();
62      if (Content == null) {
63        // TODO: Add code when content has been changed and is null
64      } else {
65        // TODO: Add code when content has been changed and is not null
66      }
67      SetEnabledStateOfControls();
68    }
69
70    protected override void OnReadOnlyChanged() {
71      base.OnReadOnlyChanged();
72      SetEnabledStateOfControls();
73    }
74
75    private void SetEnabledStateOfControls() {
76      // TODO: Enable or disable controls based on whether the content is null or the view is set readonly
77    }
78
79    #region Event Handlers (child controls)
80    // TODO: Put event handlers of child controls here.
81    #endregion
82  }
83}
Note: See TracBrowser for help on using the repository browser.