Пример #1
0
        private void 待处理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //判断打开窗口
            if (waiteditFm == null || waiteditFm.IsDisposed)
            {
                waiteditFm = new WaitEdit(this);
                waiteditFm.Show(dockPanel, DockState.DockRight);

            }
            waiteditFm.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();
        }