Esempio n. 1
0
        Tools.MapEditor.MainView OpenMapEditor()
        {
            var frm = new Tools.MapEditor.MainView();

            frm.Show(dpMain, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            return(frm);
        } //Opens the Map Editor (and returns a referece to it)
Esempio n. 2
0
        Tools.MapEditor.MainView OpenMapEditor()
        {
            var frm = new Tools.MapEditor.MainView();

            frm.TopLevel        = false;
            frm.ControlBox      = false;
            frm.FormBorderStyle = FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            var newTab = new TabPage(frm.Text);

            newTab.Controls.Add(frm);
            TabControl.TabPages.Add(newTab);
            TabControl.SelectedTab = newTab;
            frm.Show();
            return(frm);
        } //Opens the Map Editor (and returns a referece to it)