private void Btn_consulter_Click(object sender, EventArgs e) { DataRowView currentDataRowView = (DataRowView)DtgListeFactures.CurrentRow.DataBoundItem; DetailFacture Df = new DetailFacture(MyDALFacture.GetFactureByRef(currentDataRowView.Row[0].ToString())); var result = Df.ShowDialog(); if (result == DialogResult.Cancel) { FillDtgListeFacture(); } }
private void Btn_SuivF_Click(object sender, EventArgs e) { if (Dal.CheckUniqueRef(Txt_RefFac.Text) == false) { MessageBox.Show("une autre facture porte la même référence ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { DetailFacture Df = new DetailFacture(Txt_RefFac.Text); var Res = Df.ShowDialog(); if (Res == DialogResult.Cancel) { this.Close(); } } }
private void Btn_Modifier_Click(object sender, EventArgs e) { DetailFacture Df = new DetailFacture(); Df.ShowDialog(); }