Exemplo n.º 1
0
 /// <summary>
 /// Добавить номер входного канала в множество и в список
 /// </summary>
 protected void AddCnlNum(int cnlNum)
 {
     if (cnlNum > 0 && CnlSet.Add(cnlNum))
     {
         int index = CnlList.BinarySearch(cnlNum);
         if (index < 0)
         {
             CnlList.Insert(~index, cnlNum);
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Add the number of the input channel to the set and to the list
        /// </summary>
        protected void AddCnlNum(int cnlNum)
        {
            if (cnlNum <= 0 || !CnlSet.Add(cnlNum))
            {
                return;
            }

            int index = CnlList.BinarySearch(cnlNum);

            if (index < 0)
            {
                CnlList.Insert(~index, cnlNum);
            }
        }