private static Etudiant GetEtudiant() { Etudiant e = new Etudiant(); e.Nom = "Lina"; e.Nce = "E00010"; return(e); }
static void Main(string[] args) { Etudiant model = GetEtudiant(); EtudiantView view = new EtudiantView(); EtudiantControleur controller = new EtudiantControleur(model, view); controller.updateView(); //update model data controller.setNomEtudiant("Loujain"); controller.updateView(); Console.ReadLine(); }
public EtudiantControleur(Etudiant model, EtudiantView view) { this.model = model; this.view = view; }