示例#1
0
 public virtual void Activate(PKBoxItem item)
 {
     if (this.Parent != null)
     {
         this.Parent.Activate(this);
     }
 }
示例#2
0
        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);
            }
        }
示例#3
0
 public PKBoxItem Add(PKBoxItem item)
 {
     this.items.Add(item);
     item.Parent = this;
     return(item);
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="item"></param>
 public override void Remove(PKBoxItem item)
 {
     this.items.Remove(item);
 }
示例#5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="item"></param>
 public virtual void Remove(PKBoxItem item)
 {
 }
示例#6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="child"></param>
 /// <param name="direction"></param>
 public virtual void Move(PKBoxItem child, int direction)
 {
 }