예제 #1
0
 public AbsenceViewModel()
 {
     StudentList = new ObservableCollection <Etudiant>(EtudiantManipulation.GetAllStudent());
     filiere     = new List <string>();
     filiere.Add("informatique");
     filiere.Add("induse");
     filiere.Add("telecome");
 }
예제 #2
0
 public void OnSubmit()
 {
     if (!IsAnyEmptyField())
     {
         if (IsValideCne(Cne))
         {
             if (IsValidEmail(Email))
             {
                 EtudiantManipulation.Insert(Int32.Parse(Cne), Nom, Prenom, Email, Telephone, Filiere);
                 IsValidAddition = true;
                 Message         = " Your Registration Completed ";
                 return;
             }
             Message = "Enter a valid email address";
             return;
         }
         Message = "Enter a valid Cne ";
         return;
     }
     Message = "Enter all the required information";
     return;
 }