Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/09 16:52:49 (15 years ago)
Author:
mkommend
Message:

implemented first version of MainFormBase and DockingMainForm (ticket #716)

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs

    r2229 r2233  
    2828using System.Windows.Forms;
    2929using WeifenLuo.WinFormsUI.Docking;
    30 using HeuristicLab.Core;
    3130
    32 namespace HeuristicLab.AdvancedOptimizationFrontend {
     31namespace HeuristicLab.MainForm {
    3332  /// <summary>
    3433  /// Displays the used view.
    3534  /// </summary>
    36   public partial class ViewForm : DockContent {
    37     private IView myView;
    38     /// <summary>
    39     /// Gets the view that is displayed.
    40     /// </summary>
    41     public IView View {
    42       get { return myView; }
    43     }
    44 
    45     /// <summary>
    46     /// Initializes a new instance of <see cref="ViewForm"/>.
    47     /// </summary>
    48     public ViewForm() {
     35  public partial class DockForm : DockContent {
     36    public DockForm(IView view) {
    4937      InitializeComponent();
    50     }
    51     /// <summary>
    52     /// Initializes a new instance of <see cref="ViewForm"/> with the given <paramref name="view"/>
    53     /// to display.
    54     /// </summary>
    55     /// <param name="view">The view that should be displayed.</param>
    56     public ViewForm(IView view)
    57       : this() {
    58       myView = view;
     38      this.view = view;
    5939      if (View != null) {
    6040        Control control = (Control)View;
     
    7151        viewPanel.Controls.Add(errorLabel);
    7252      }
     53    }
     54
     55    private IView view;
     56    public IView View {
     57      get { return view; }
    7358    }
    7459
Note: See TracChangeset for help on using the changeset viewer.