private void frmConsultationPersonne_Load(object sender, EventArgs e) { this.adherents = MAdherents.ChercherAdherent(laPersonne.NumAdherent); this.affichePersonnes(); now = DateTime.Now; valide = adherents.dateCotisation.AddYears(1); if (now > valide) { lblRetard.Visible = true; } else { lblRetard.Visible = false; } }
private void frmConsultationScolaire_Load(object sender, EventArgs e) { this.adherents = MAdherents.ChercherAdherent(leScolaire.NumAdherent); this.afficheScolaires(); }