public virtual void Activate(PKBoxItem item) { if (this.Parent != null) { this.Parent.Activate(this); } }
public override void Move(PKBoxItem child, int direction) { int index = this.items.IndexOf(child); int nindex = index + direction; if (nindex >= 0 && nindex < this.items.Count) { this.Remove(child); this.items.Insert(nindex, child); } }
public PKBoxItem Add(PKBoxItem item) { this.items.Add(item); item.Parent = this; return(item); }
/// <summary> /// /// </summary> /// <param name="item"></param> public override void Remove(PKBoxItem item) { this.items.Remove(item); }
/// <summary> /// /// </summary> /// <param name="item"></param> public virtual void Remove(PKBoxItem item) { }
/// <summary> /// /// </summary> /// <param name="child"></param> /// <param name="direction"></param> public virtual void Move(PKBoxItem child, int direction) { }