Beispiel #1
0
 protected override void CopyTo(TtabItemMotiveItem target, bool doEvent)
 {
     if (!(target is TtabItemSingleMotiveItem))
     {
         throw new ArgumentException("Argument must be of same type", "target");
     }
     items.CopyTo(((TtabItemSingleMotiveItem)target).items, 0);
     if (doEvent && target.Wrapper != null)
     {
         target.Wrapper.OnWrapperChanged(target, new EventArgs());
     }
 }
Beispiel #2
0
        public int Add(TtabItemMotiveItem item)
        {
            //if (items.Count >= 0x10) // we don't really know...
            //return -1;

            item.Parent = this;
            int result = items.Add(item);

            if (result >= 0 && Wrapper != null)
            {
                Wrapper.OnWrapperChanged(this, new EventArgs());
            }
            return(result);
        }
Beispiel #3
0
 public void CopyTo(TtabItemMotiveItem target)
 {
     CopyTo(target, true);
 }
Beispiel #4
0
 protected abstract void CopyTo(TtabItemMotiveItem target, bool doEvent);
Beispiel #5
0
 public bool Contains(TtabItemMotiveItem item)
 {
     return(items.Contains(item));
 }
Beispiel #6
0
 public void Remove(TtabItemMotiveItem item)
 {
     this.RemoveAt(items.IndexOf(item));
 }