private void 待报送ToolStripMenuItem_Click(object sender, EventArgs e) { //判断打开窗口 if (waitsendFm == null || waitsendFm.IsDisposed) { waitsendFm = new WaitSendFrm(this); waitsendFm.Show(waiteditFm.Pane, DockAlignment.Bottom, 0.5); } waitsendFm.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(); }