Changeset 2250 for trunk/sources/HeuristicLab.MainForm
- Timestamp:
- 08/06/09 15:24:11 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm/3.2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm/3.2/DockForm.Designer.cs
r2233 r2250 67 67 this.ClientSize = new System.Drawing.Size(632, 446); 68 68 this.Controls.Add(this.viewPanel); 69 this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.Document))); 69 this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)(((((WeifenLuo.WinFormsUI.Docking.DockAreas.Float | WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft) 70 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight) 71 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockTop) 72 | WeifenLuo.WinFormsUI.Docking.DockAreas.DockBottom 73 | WeifenLuo.WinFormsUI.Docking.DockAreas.Document))); 70 74 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 71 75 this.Name = "ViewForm"; … … 75 79 this.TabText = "View"; 76 80 this.Text = "View"; 77 this.TextChanged += new System.EventHandler(this.ViewForm_TextChanged);78 81 this.ResumeLayout(false); 79 80 82 } 81 83 -
trunk/sources/HeuristicLab.MainForm/3.2/DockForm.cs
r2233 r2250 36 36 public DockForm(IView view) { 37 37 InitializeComponent(); 38 this.view = view; 38 this.view = view; 39 39 if (View != null) { 40 40 Control control = (Control)View; … … 62 62 Invoke(new MethodInvoker(UpdateText)); 63 63 else 64 Text = View.Caption; 65 } 66 67 private void ViewForm_TextChanged(object sender, EventArgs e) { 68 TabText = Text; 64 TabText = View.Caption; 69 65 } 70 66 -
trunk/sources/HeuristicLab.MainForm/3.2/DockingMainForm.cs
r2233 r2250 48 48 DockContent content = new DockForm(view); 49 49 content.TabText = content.Text; 50 content.Show(dockPanel);51 50 content.Activated += new EventHandler(DockFormActivated); 52 51 content.FormClosing += new FormClosingEventHandler(DockFormClosing); 52 content.Show(dockPanel, DockState.Document); 53 53 } 54 54 } … … 91 91 this.dockPanel.RightToLeftLayout = true; 92 92 this.dockPanel.Size = new Size(1016, 663); 93 this.dockPanel.DocumentStyle = DocumentStyle.DockingWindow; 93 94 dockPanelGradient1.EndColor = SystemColors.ControlLight; 94 95 dockPanelGradient1.StartColor = SystemColors.ControlLight; -
trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs
r2243 r2250 37 37 Type UserInterfaceItemType { get; } 38 38 void ShowView(IView view); 39 40 void Close(); 39 41 } 40 42 } -
trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs
r2249 r2250 72 72 openViews.Add(view); 73 73 } 74 75 public void Close() { 76 ((Form)this).Close(); 77 } 74 78 #endregion 75 79 … … 90 94 foreach (IToolStripButtonItem toolStripButtonItem in toolStripItems) { 91 95 AddToolStripButtonItem(toolStripButtonItem); 92 } 96 } 93 97 } 94 98 -
trunk/sources/HeuristicLab.MainForm/3.2/ViewBase.cs
r2233 r2250 30 30 31 31 namespace HeuristicLab.MainForm { 32 public partial class ViewBase : UserControl {32 public partial class ViewBase : UserControl,IView { 33 33 public ViewBase() { 34 34 InitializeComponent();
Note: See TracChangeset
for help on using the changeset viewer.