public Ecole(Ecole u) { Name = u.Name; Tel = u.Tel; Logo = u.Logo; Email = u.Email; }
public Etudiant(Etudiant e, Ecole s) : base(s.Name, s.Tel, s.Logo, s.Email) { FirstName = e.FirstName; LastName = e.LastName; EmailS = e.EmailS; TelS = e.TelS; Sexe = e.Sexe; BornOn = e.BornOn; BornAt = e.BornAt; Photo = e.Photo; Matricule = $"{FirstName.Substring(0, 2)}{BornOn.Year.ToString().Substring(2)}" + $"{count++.ToString().PadLeft(4, '0')}{Sexe.Substring(0, 1)}"; }
public Etudiant(string firstName, string lastName, string emailS, int telS, string sexe, DateTime bornOn, string bornAt, byte[] photo, Ecole u) { FirstName = firstName; LastName = lastName; EmailS = emailS; TelS = telS; Sexe = sexe; BornOn = bornOn; BornAt = bornAt; Photo = photo; Matricule = $"{FirstName.Substring(0, 2)}{BornOn.Year.ToString().Substring(2)}" + $"{count++.ToString().PadLeft(4, '0')}{Sexe.Substring(0, 1)}"; }