예제 #1
0
        public void completerFenetre()
        {
            nom.Text            = client.Nom;
            prenom.Text         = client.Prenom;
            dateNaissance.Text  = client.DateNaissance.ToString("dd-MM-yyyy");
            adresse.Text        = client.Adresse;
            telephone.Text      = client.Telephone;
            adresseMail.Text    = client.AdresseMail;
            heureEffective.Text = ControleurClient.getNombreHeureEffectiveClient(client.AdresseMail).ToString();
            List <Reservation> reservations = ControleurReservation.getReservationClient(client.AdresseMail);

            foreach (Reservation reservation in reservations)
            {
                DataGridViewRow row = new DataGridViewRow();
                row.CreateCells(planning, reservation.Moniteur.Nom + " " + reservation.Moniteur.Prenom, reservation.Vehicule.Immatriculation, reservation.Date.ToString());
                planning.Rows.Add(row);
            }
            this.pictureBox1.Image    = Image.FromFile(GestionPhoto.afficherImageClient(client.AdresseMail));
            this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
        }
예제 #2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     this.pictureBox1.Image    = Image.FromFile(GestionPhoto.afficherImageClient(client.AdresseMail));
     this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
 }