Ejemplo n.º 1
0
      public Eléve recherche(int PostionRecherche)
      {
          Eléve elév = null;

          for (int j = 0; j < E.Count; j++)
          {
              if (E[j].Matricule == PositionElévesEncours)
              {
                  elév          = E[j];
                  _EleveEnCours = j; break;
              }
          }
          return(elév);
      }
Ejemplo n.º 2
0
      public Eléve recherche(int PostionRecherche)
      {
          Eléve elév = null;

          for (int i = 0; i < L.Count; i++)
          {
              if (L[i].Matricule == PositionElévesEncours)
              {
                  elév = L[i];
              }
              _EleveEnCours = i; break;
          }
          return(elév);
      }
Ejemplo n.º 3
0
      public Eléve Recherche(string nomeleve)
      {
          Eléve ChRech = null;

          for (int i = 0; i < L.Count; i++)
          {
              if (L[i].Nom == nomeleve)
              {
                  ChRech        = L[i];
                  _EleveEnCours = i;
                  break;
              }
          }
          return(ChRech);
      }
Ejemplo n.º 4
0
        private void AfficherEléves(Eléve elé)
        {
            if (elé != null)
            {
                textBox1.Text = elé.Matricule.ToString();
                textBox2.Text = elé.Nom;
                textBox3.Text = elé.Prénom;

                dateTimePicker1.Value = elé.DateDeNaissance;
                textBox4.Text         = elé.Adresse;
            }
            else
            {
                textBox1.Text = "";
                textBox2.Text = "";
                textBox3.Text = "";

                dateTimePicker1.Value = DateTime.Today;
                textBox4.Text         = "";
            }
        }
Ejemplo n.º 5
0
 public void Modifie(int Pos, Eléve NeveouxEléve)
 {
     L[Pos] = NeveouxEléve;
 }