/// <summary> /// Show a view. /// </summary> public void Show(IView view) { try { this.Cursor = Cursors.WaitCursor; view.MainMenu = this; view.LoadData(); var page = new TabPage { Text = view.Title }; page.Controls.Add(view.UserControl); view.UserControl.Dock = DockStyle.Fill; this.tabControl.TabPages.Add(page); this.views.Add(view, page); this.tabControl.SelectedTab = page; this.GetMenuItem(@"&File\Close &Document").Enabled = true; } finally { this.Cursor = Cursors.Default; } }