public Horaire(string numGroupe, string numCours, string nomCours, string numLocal, string idLocal, string typeLocal, string dateDebut, string heureDebut, string dateFin, string heureFin, string numJour) { this.DateDebut = DateTime.Parse($"{dateDebut}T{heureDebut}"); this.DateFin = DateTime.Parse($"{dateFin}T{heureFin}"); this.Jour = (JourDeLaSemaine)int.Parse(numJour); this.NoGroupe = numGroupe; this.NoCours = numCours; this.NomCours = nomCours; this.NoLocal = numLocal; this.IDLocal = idLocal; this.TypeLocal = typeLocal; }
public Horaire(string numGroupe, string numCours, string nomCours, string numLocal, string idLocal, string typeLocal, DateTime dateDebut, DateTime dateFin, JourDeLaSemaine jour) { this.Jour = jour; this.DateDebut = dateDebut; this.DateFin = dateFin; this.NoGroupe = numGroupe; this.NoCours = numCours; this.NomCours = nomCours; this.NoLocal = numLocal; this.IDLocal = idLocal; this.TypeLocal = typeLocal; }