} //Opens the Chunk Mappings Editor (and returns a referece to it) Tools.BackgroundEditor.MainView OpenBackgroundEditor() { Tools.BackgroundEditor.MainView frm = new Tools.BackgroundEditor.MainView(); frm.TopLevel = false; frm.ControlBox = false; frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frm.Dock = DockStyle.Fill; var newTab = new TabPage(); newTab.Controls.Add(frm); this.TabControl.TabPages.Add(newTab); this.TabControl.SelectedTab = newTab; this.TabControl.SelectedTab.Text = frm.Text; frm.Show(); return(frm); } //Opens the Background Editor (and returns a referece to it)
} //Opens the Chunk Mappings Editor (and returns a referece to it) Tools.BackgroundEditor.MainView OpenBackgroundEditor() { Tools.BackgroundEditor.MainView frm = new Tools.BackgroundEditor.MainView(); frm.Show(dpMain, WeifenLuo.WinFormsUI.Docking.DockState.Document); return(frm); } //Opens the Background Editor (and returns a referece to it)