示例#1
0
        Tools.PaletteEditor.MainForm OpenPaletteEditor()
        {
            var frm = new Tools.PaletteEditor.MainForm();

            frm.Show(dpMain, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            return(frm);
        } //Opens the Palette Editor (and returns a referece to it)
示例#2
0
        } //Opens the Background Editor (and returns a referece to it)

        Tools.PaletteEditor.MainForm OpenPaletteEditor()
        {
            var frm = new Tools.PaletteEditor.MainForm();

            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 Palette Editor (and returns a referece to it)