Exemplo n.º 1
0
        /// <summary>
        /// Получить информацию направления
        /// </summary>
        /// <param name="index">Приоритетный номер</param>
        /// <returns>Направление</returns>
        public CDirectionWithProfile GetDirectionWithProfile(int index)
        {
            CDirectionWithProfile directionWithProfile = _directionWithProfiles[index - 1];

            return(new CDirectionWithProfile(directionWithProfile.Direction, directionWithProfile.PriorityProfile, directionWithProfile.ID));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Добавить в список приоритетов направлений
 /// </summary>
 /// <param name="directionWithProfile">Профиль направления</param>
 public void AddDirection(CDirectionWithProfile directionWithProfile)
 {
     _directionWithProfiles.Add(directionWithProfile);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Конструктор класса
 /// </summary>
 /// <param name="directionWithProfile">Направление с профилями</param>
 public CPriorityDirection(CDirectionWithProfile directionWithProfile)
 {
     _directionWithProfiles = new List <CDirectionWithProfile>();
     _directionWithProfiles.Add(directionWithProfile);
 }