private void btnNew_Click(object sender, EventArgs e) { FrmJhdXX f = new FrmJhdXX(); f.Prepare(EnumNED.NEW, bds, dsJxc, tjhdTableAdapter1, dgv); f.ShowDialog(); }
private void btnDetail_Click(object sender, EventArgs e) { //数据库为空时不执行本操作 if (bds.Current == null) { return; } FrmJhdXX f = new FrmJhdXX(); f.Prepare(EnumNED.DETALL, bds, dsJxc, tjhdTableAdapter1, dgv); f.ShowDialog(); }