Changeset 2233 for trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs
- Timestamp:
- 08/04/09 16:52:49 (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs
r2229 r2233 28 28 using System.Windows.Forms; 29 29 using WeifenLuo.WinFormsUI.Docking; 30 using HeuristicLab.Core;31 30 32 namespace HeuristicLab. AdvancedOptimizationFrontend{31 namespace HeuristicLab.MainForm { 33 32 /// <summary> 34 33 /// Displays the used view. 35 34 /// </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) { 49 37 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; 59 39 if (View != null) { 60 40 Control control = (Control)View; … … 71 51 viewPanel.Controls.Add(errorLabel); 72 52 } 53 } 54 55 private IView view; 56 public IView View { 57 get { return view; } 73 58 } 74 59
Note: See TracChangeset
for help on using the changeset viewer.