private void LoadWindowLayout() { this.SuspendLayout(); ViewportForm persView = new ViewportForm(ViewportType.Perspective); ViewportForm topView = new ViewportForm(ViewportType.Top); ViewportForm sideView = new ViewportForm(ViewportType.Side); ViewportForm frontView = new ViewportForm(ViewportType.Front); persView.Show(this.dockPanel, DockState.Document); sideView.Show(persView.Pane, DockAlignment.Bottom, 0.5); topView.Show(persView.Pane, DockAlignment.Right, 0.5); frontView.Show(sideView.Pane, DockAlignment.Right, 0.5); this.ResumeLayout(); }
private void perspectiveToolStripMenuItem_Click(object sender, EventArgs e) { ViewportForm form = new ViewportForm(ViewportType.Perspective); form.Show(this.dockPanel, DockState.Document); }