private void BtnSeq_Click(object sender, EventArgs e) { try { NowView frm = new NowView(Convert.ToDecimal(sortnum)); frm.Show(); frm.Activate(); SearchWinForm(frm); } catch (Exception ex) { MessageBox.Show("数据库连接失败!请检查网络"); } }
//System.Windows.Forms.Timer t2 = new System.Windows.Forms.Timer(); public void GetNowView(object sender, EventArgs e)//获取当前混合道 { int machineseq1 = Convert.ToInt32(boxText[0]); int machineseq2; if (boxText.Length > 1) { machineseq2 = Convert.ToInt32(boxText[1]); } else { machineseq2 = machineseq1; } //fNowView = new NowView(machineseq1, machineseq2, finishNo);/*暂 注*/ fNowView.Show(); fNowView.Activate(); SearchWinForm(fNowView); }