public Stage(int type, int etudiant, int entreprise) { TypeId = type; EtudiantId = etudiant; EntrepriseId = entreprise; Type = new DataAccess.TypeDA().Get(TypeId); Etudiant = new DataAccess.EtudiantDA().Get(EtudiantId); Entreprise = new DataAccess.EntrepriseDA().Get(EntrepriseId); }
private void Modifier_Load(object sender, EventArgs e) { var element = new DataAccess.TypeDA().Get(Id); txtNom.Text = element.Nom; }