- Timestamp:
- 08/06/09 17:19:11 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewEditorAction.cs ¶
r2250 r2252 11 11 public void Execute(IMainForm mainform) { 12 12 mainform.StatusStripText = "New Editor action called"; 13 mainform.ShowView(new EditorView()); 13 EditorView x = new EditorView(); 14 x.Caption = "Editor View"; 15 mainform.ShowView(x); 14 16 } 15 17 -
TabularUnified trunk/sources/HeuristicLab.MainForm.Test/3.2/Actions/NewFormAction.cs ¶
r2250 r2252 10 10 11 11 public void Execute(IMainForm mainform) { 12 mainform.ShowView(new FormView()); 12 mainform.StatusStripText = "New form called"; 13 FormView x = new FormView(); 14 x.Caption = "FormView"; 15 mainform.ShowView(x); 13 16 } 14 17 -
TabularUnified trunk/sources/HeuristicLab.MainForm.Test/3.2/FormView.cs ¶
r2250 r2252 10 10 namespace HeuristicLab.MainForm.Test { 11 11 public partial class FormView : ViewBase { 12 private int[] array; 12 13 public FormView() { 13 14 InitializeComponent(); -
TabularUnified trunk/sources/HeuristicLab.MainForm/3.2/DockForm.Designer.cs ¶
r2250 r2252 61 61 this.viewPanel.TabIndex = 0; 62 62 // 63 // ViewForm63 // DockForm 64 64 // 65 65 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); … … 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.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))); 69 this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 74 70 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 75 this.Name = " ViewForm";71 this.Name = "DockForm"; 76 72 this.ShowIcon = false; 77 73 this.ShowInTaskbar = false; 78 74 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 79 this.TabText = "View";80 this.Text = "View";81 75 this.ResumeLayout(false); 82 76 } -
TabularUnified trunk/sources/HeuristicLab.MainForm/3.2/DockingMainForm.cs ¶
r2250 r2252 37 37 dockPanel = new DockPanel(); 38 38 InitializeDockPanel(); 39 this.IsMdiContainer = true; 39 40 this.Controls.Add(dockPanel); 41 this.Controls.SetChildIndex(dockPanel, 0); 40 42 } 41 43 … … 43 45 44 46 public override void ShowView(IView view) { 45 base.ShowView(view);47 46 48 if (InvokeRequired) Invoke((Action<IView>)ShowView, view); 47 49 else { 50 base.ShowView(view); 48 51 DockContent content = new DockForm(view); 49 content.TabText = content.Text;50 52 content.Activated += new EventHandler(DockFormActivated); 51 53 content.FormClosing += new FormClosingEventHandler(DockFormClosing); 52 content.Show(dockPanel , DockState.Document);54 content.Show(dockPanel); 53 55 } 54 56 } … … 57 59 DockForm dockForm = (DockForm)sender; 58 60 openViews.Remove(dockForm.View); 61 dockForm.Activated -= new EventHandler(DockFormActivated); 62 dockForm.FormClosing -= new FormClosingEventHandler(DockFormClosing); 59 63 } 60 64 61 65 private void DockFormActivated(object sender, EventArgs e) { 62 66 base.activeView = ((DockForm)sender).View; 67 base.StatusStripText = ((DockForm)sender).View.Caption; 63 68 } 64 69 … … 90 95 this.dockPanel.Name = "dockPanel"; 91 96 this.dockPanel.RightToLeftLayout = true; 92 this.dockPanel.Size = new Size(1016, 663);93 this.dockPanel.DocumentStyle = DocumentStyle.DockingWindow;94 97 dockPanelGradient1.EndColor = SystemColors.ControlLight; 95 98 dockPanelGradient1.StartColor = SystemColors.ControlLight;
Note: See TracChangeset
for help on using the changeset viewer.