Пример #1
0
        /// <summary>
        /// Regroupe les critères dans une liste de chaînes de caractères.
        /// </summary>
        /// <param name="_dateString">Date</param>
        /// <param name="_workTimetableString">La plage horaire de travail</param>
        /// <param name="_professionString">Profession</param>
        /// <param name="_certifiedString">Certification</param>
        /// <param name="_ageString">L'âge</param>
        /// <param name="_nbrYearExpString">Expérience</param>
        internal static void CriteriaList(string _dateString, string _workTimetableString, string _professionString, string _certifiedString, string _ageString, string _nbrYearExpString)
        {
            string        date          = _dateString;
            string        workTimetable = _workTimetableString;
            string        profession    = _professionString;
            string        certified     = _certifiedString;
            string        age           = _ageString;
            string        nbrYearExp    = _nbrYearExpString;
            List <string> criteriaList  = new List <string>();

            // Ajoute les criètres à la liste.
            criteriaList.Add(date);
            criteriaList.Add(workTimetable);
            criteriaList.Add(profession);
            criteriaList.Add(certified);
            criteriaList.Add(age);
            criteriaList.Add(nbrYearExp);

            // Assigne aux différentes propriétés.
            Results.Results.Criteria = criteriaList;
            InterimDatabase.DatabaseCriteria(criteriaList);
        }