private void LoadAllmensualite() { if (F_parent != null) { Form_Caisse_Saisie f = (Form_Caisse_Saisie)F_parent; FullMensualite(f.facture); } }
private void dgv_mensualite_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { if (dgv_mensualite.CurrentRow.Cells[0].Value != null) { long id = Convert.ToInt64(dgv_mensualite.CurrentRow.Cells[0].Value.ToString()); if (id > 0) { Form_Caisse_Saisie f = (Form_Caisse_Saisie)F_parent; Mensualite c = f.facture.Mensualites.Find(x => x.Id == id); PopulateViewMensualite(c); } } } catch (Exception ex) { Messages.Exception(ex); } }