示例#1
0
        private void 导航ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //判断打开窗口
            if (navFm == null || navFm.IsDisposed)
            {
                navFm = new NavFrm(this);
                navFm.Show(dockPanel, DockState.DockLeft);

            }
            navFm.Activate();
        }
示例#2
0
        private void MainFrm_Load(object sender, EventArgs e)
        {
            #region 显示窗体
            navFm = new NavFrm(this);
            selectFm = new SelectFrm(this);
            waiteditFm = new WaitEdit(this);
            waitsendFm = new WaitSendFrm(this);
            ruleFm = new RuleFrm(this);
            hassendfm = new HasSendFrm(this);

            navFm.Show(dockPanel, DockState.DockLeft);
            ruleFm.Show(navFm.Pane, DockAlignment.Bottom, 0.5);
            selectFm.Show(dockPanel);
            
            waiteditFm.Show(dockPanel, DockState.DockRight);
            waitsendFm.Show(waiteditFm.Pane, DockAlignment.Bottom, 0.5);
            hassendfm.Show(waitsendFm.Pane, DockAlignment.Bottom, 0.5);

            editFm = new EditFrm(this);
            editFm.Show(dockPanel);
            selectFm.Activate();
            #endregion


            Thread ts = new Thread(new ThreadStart(delegate
            {
                GetConfig();
            }));
            ts.Start();

            //Thread t = new Thread(new ThreadStart(delegate
            //{
            Reg();
            //}));
            //t.Start();

        }
示例#3
0
        private void MainFrm_Load(object sender, EventArgs e)
        {
            #region 显示窗体
            navFm = new NavFrm(this);
            selectFm = new SelectFrm(this);
            waiteditFm = new WaitEdit(this);
            waitsendFm = new WaitSendFrm(this);
            ruleFm = new RuleFrm(this);
            hassendfm = new HasSendFrm(this);

            navFm.Show(dockPanel, DockState.DockLeft);
            ruleFm.Show(navFm.Pane, DockAlignment.Bottom, 0.5);
            selectFm.Show(dockPanel);
            waiteditFm.Show(dockPanel, DockState.DockRight);
            waitsendFm.Show(waiteditFm.Pane, DockAlignment.Bottom, 0.5);
            hassendfm.Show(waitsendFm.Pane, DockAlignment.Bottom, 0.5);
            #endregion

            GetConfig();
            Reg();
        }