Пример #1
0
        public static void showTreeDesigner(Form frmMdi, string sPath)
        {
            var frm1 = new TreeDesigner.frmTreeDesigner();

            frm1.MdiParent = frmMdi;
            frm1.load(sPath);
            frm1.Show();
        }
Пример #2
0
        private void treeDesginerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new TreeDesigner.frmTreeDesigner();

            frm.load(ui.getTreeXmlPath());
            frm.ShowDialog();

            this.loadTree(ui.getTreeXmlPath());
        }
Пример #3
0
        private static void startForm(string sformKey = "")
        {
            Form frm1 = null;

            if (sformKey.isEmpty() == false)
            {
                switch (sformKey)
                {
                case "main":
                    var frmMain = new frmMain();

                    frm1 = frmMain;
                    break;

                case "main2":
                    var frmMain2 = new frmMain2();
                    frmMain2.loadMenu(ui.getTreeXmlPath());
                    frm1 = frmMain2;
                    break;

                case "tree":
                    string sPath   = ui.getTreeXmlPath();
                    var    frmTree = new TreeDesigner.frmTreeDesigner();
                    frmTree.load(sPath);
                    frm1 = frmTree;
                    break;

                case "util":
                    var frmUtil = new appConfig.frmMainAppConfig();
                    frm1 = frmUtil;
                    break;
                }
            }

            if (frm1 != null)
            {
                frm1.ShowDialog();
                //Application.Run(frm1);
            }//frm1.ShowDialog();
        }