Exemplo n.º 1
0
        } //Opens the Palette Editor (and returns a referece to it)

        Tools.GFXTool.MainForm OpenGFXTool()
        {
            var frm = new Tools.GFXTool.MainForm();

            frm.Show(dpMain, WeifenLuo.WinFormsUI.Docking.DockState.Document);
            return(frm);
        } //Opens the GFX Tool (and returns a referece to it)
Exemplo n.º 2
0
        } //Opens the Palette Editor (and returns a referece to it)

        Tools.GFXTool.MainForm OpenGFXTool()
        {
            var frm = new Tools.GFXTool.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 GFX Tool (and returns a referece to it)