public bool RemoveDuct(BaseDuct duct) { bool removeOk = DuctCollection.Remove(duct); ReadOnlyPropertyChanged(); return(removeOk); }
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; } }
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; } }
public IEnumerator <BaseDuct> GetEnumerator() { return(DuctCollection.GetEnumerator()); }
public void RemoveAllDucts() { DuctCollection.Clear(); }
public void RemoveDuctAt(int index) { DuctCollection.RemoveAt(index); ReadOnlyPropertyChanged(); }
public void InsertDuct(int index, BaseDuct duct) { DuctCollection.Insert(index, duct); ReadOnlyPropertyChanged(); }
public void Add(BaseDuct duct) { DuctCollection.Add(duct); ReadOnlyPropertyChanged(); }