示例#1
0
文件: Program.cs 项目: thaouet/MVC_0
        private static Etudiant GetEtudiant()
        {
            Etudiant e = new Etudiant();

            e.Nom = "Lina";
            e.Nce = "E00010";
            return(e);
        }
示例#2
0
文件: Program.cs 项目: thaouet/MVC_0
        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();
        }
示例#3
0
 public EtudiantControleur(Etudiant model, EtudiantView view)
 {
     this.model = model;
     this.view  = view;
 }