Ejemplo n.º 1
0
        public bool RemoveDuct(BaseDuct duct)
        {
            bool removeOk = DuctCollection.Remove(duct);

            ReadOnlyPropertyChanged();
            return(removeOk);
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 4
0
 public IEnumerator <BaseDuct> GetEnumerator()
 {
     return(DuctCollection.GetEnumerator());
 }
Ejemplo n.º 5
0
 public void RemoveAllDucts()
 {
     DuctCollection.Clear();
 }
Ejemplo n.º 6
0
 public void RemoveDuctAt(int index)
 {
     DuctCollection.RemoveAt(index);
     ReadOnlyPropertyChanged();
 }
Ejemplo n.º 7
0
 public void InsertDuct(int index, BaseDuct duct)
 {
     DuctCollection.Insert(index, duct);
     ReadOnlyPropertyChanged();
 }
Ejemplo n.º 8
0
 public void Add(BaseDuct duct)
 {
     DuctCollection.Add(duct);
     ReadOnlyPropertyChanged();
 }