void btn_ajout_Click(object sender, EventArgs e) { bs.AddNew(); ((DataRowView)bs.Current)["CODE_MARQUE"] = -1; CHM_FRM_MAJ_MARQUE f = new CHM_FRM_MAJ_MARQUE(bs); f.ShowDialog(); }
void btn_modifier_Click(object sender, EventArgs e) { if (bs.Current != null) { CHM_FRM_MAJ_MARQUE f = new CHM_FRM_MAJ_MARQUE(bs); f.ShowDialog(); } }