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

            Speciality = s;
            IcdBlock   = b;
        }
Ejemplo n.º 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);
        }