Пример #1
0
        public bool RemoveDuct(BaseDuct duct)
        {
            bool removeOk = DuctCollection.Remove(duct);

            ReadOnlyPropertyChanged();
            return(removeOk);
        }
Пример #2
0
        public void MoveDown(BaseDuct duct)
        {
            int index = DuctCollection.IndexOf(duct);

            if (index + 1 < DuctCollection.Count)
            {
                BaseDuct temp = DuctCollection[index + 1];
                DuctCollection[index + 1] = duct;
                DuctCollection[index]     = temp;
            }
        }
Пример #3
0
        public void MoveUp(BaseDuct duct)
        {
            int index = DuctCollection.IndexOf(duct);

            if (index - 1 >= 0)
            {
                BaseDuct temp = DuctCollection[index - 1];
                DuctCollection[index - 1] = duct;
                DuctCollection[index]     = temp;
            }
        }
Пример #4
0
 public IEnumerator <BaseDuct> GetEnumerator()
 {
     return(DuctCollection.GetEnumerator());
 }
Пример #5
0
 public void RemoveAllDucts()
 {
     DuctCollection.Clear();
 }
Пример #6
0
 public void RemoveDuctAt(int index)
 {
     DuctCollection.RemoveAt(index);
     ReadOnlyPropertyChanged();
 }
Пример #7
0
 public void InsertDuct(int index, BaseDuct duct)
 {
     DuctCollection.Insert(index, duct);
     ReadOnlyPropertyChanged();
 }
Пример #8
0
 public void Add(BaseDuct duct)
 {
     DuctCollection.Add(duct);
     ReadOnlyPropertyChanged();
 }