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()); } }
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); }
public void CopyTo(TtabItemMotiveItem target) { CopyTo(target, true); }
protected abstract void CopyTo(TtabItemMotiveItem target, bool doEvent);
public bool Contains(TtabItemMotiveItem item) { return(items.Contains(item)); }
public void Remove(TtabItemMotiveItem item) { this.RemoveAt(items.IndexOf(item)); }