private void button1_Click(object sender, EventArgs e) { FormPrecision pr = new FormPrecision(); pr.getid(m); pr.ShowDialog(); this.Actualiser(); }
private void precisionDataGridView_CellClick(object sender, DataGridViewCellEventArgs e) { Precision pr = (Precision)precisionBindingSource.Current; if (e.ColumnIndex == 6) { new PrecisionBAO().Delete(pr.Id); this.Actualiser(); } if (e.ColumnIndex == 5) { FormPrecision prx = new FormPrecision(); prx.ismodify = true; prx.getid(m); prx.update(pr); prx.ShowDialog(); this.Actualiser(); } }