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("数据库连接失败!请检查网络"); } }