コード例 #1
0
        /// <summary>
        /// Assigne aux contrôles les informations de l'intérimaire.
        /// </summary>
        private void TemporaryInformations()
        {
            List <string> temporaryInformations = Profile.TemporaryInformations();
            bool          temporaryCertified    = InterimDatabase.GetTemporaryCertified(Profile.TemporaryID);

            // Vérifie le contenu des informations de l'intérimaire.
            if (Profile.IsCorrectList(temporaryInformations))
            {
                // Assigne aux contrôles les informations de l'intérimaire.
                lbl_title.Content     = temporaryInformations[0];
                lbl_name.Content      = temporaryInformations[1];
                lbl_firstName.Content = temporaryInformations[2];
                lbl_ageValue.Content  = temporaryInformations[3] + Profile_Val.Default.Year;

                lbl_number.Content   = temporaryInformations[4];
                lbl_street.Content   = temporaryInformations[5];
                lbl_postCode.Content = temporaryInformations[6];
                lbl_city.Content     = temporaryInformations[7];
                lbl_region.Content   = temporaryInformations[8];

                lbl_phoneNumber.Content = Profile_Val.Default.InternationalSymbol + temporaryInformations[9];
                lbl_emailAdress.Content = temporaryInformations[10];

                lbl_professionValue.Content = temporaryInformations[11];
                lbl_nbrYearExpValue.Content = temporaryInformations[12] + Profile_Val.Default.Year;
                chk_certified.IsChecked     = temporaryCertified;
                lbl_emplAgencyName.Content  = temporaryInformations[13];
            }
            else
            {
                // Affichage un message d'erreur.
                MessageBox.Show(Profile_Val.Default.TemporaryInformations, Profile_Err.Default.ErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }