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

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