private void 采集规则ToolStripMenuItem_Click(object sender, EventArgs e) { //判断打开窗口 if (ruleFm == null || ruleFm.IsDisposed) { ruleFm = new RuleFrm(this); ruleFm.Show(navFm.Pane, DockAlignment.Bottom, 0.5); ruleFm.Activate(); } ruleFm.Activate(); }
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(); }
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(); }