public virtual void RemoveBlock(IcdBlock block) { if (SbHelper.Remove(block)) { OnBlocksChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, block)); } }
public SpecialityIcdBlocks(Speciality s, IcdBlock b) { Contract.Requires(s != null); Contract.Requires(b != null); Speciality = s; IcdBlock = b; }
public virtual IcdBlock AddBlock(IcdBlock block) { if (!IcdBlocks.Contains(block)) { var si = new SpecialityIcdBlocks(this, block); SbHelper.Add(si); OnBlocksChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, block)); } return(block); }