private void btnNew_Click(object sender, EventArgs e) { bds.EndEdit(); FrmJhmxXX f = new FrmJhmxXX(); f.Prepare(EnumNED.NEW, bdsMX, dsJxc1, tjhmxTableAdapter1, Convert.ToInt32(lblId.Text), dgv); f.ShowDialog(); }
private void btnDetail_Click(object sender, EventArgs e) { //数据库为空时不执行本操作 if (bdsMX.Current == null) { return; } FrmJhmxXX f = new FrmJhmxXX(); f.Prepare(EnumNED.DETALL, bdsMX, dsJxc1, tjhmxTableAdapter1); f.ShowDialog(); }