Example #1
0
 public virtual void RemoveBlock(IcdBlock block)
 {
     if (SbHelper.Remove(block))
     {
         OnBlocksChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, block));
     }
 }
Example #2
0
        public SpecialityIcdBlocks(Speciality s, IcdBlock b)
        {
            Contract.Requires(s != null);
            Contract.Requires(b != null);

            Speciality = s;
            IcdBlock   = b;
        }
Example #3
0
        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);
        }