示例#1
0
        private void InsertNextInternal(DragableListItem item)
        {
            //item.Bounds = new RectF(0, 0, this.Width, _listItemSize);

            item.Index = this._listItemCollection.Count;

            this._listItemCollection.Add(item);
        }
示例#2
0
        public void Add(DragableListItem pItem)
        {
            if (m_list.Count > this.m_bufferLow && m_list.Count < this.m_bufferHigh)
            {
                pItem.Buffered = true;
            }

            this.m_list.Add(pItem);
        }
示例#3
0
        private void SelectSingleItem(DragableListItem pItem)
        {
            int itemIndex = m_list.IndexOf(pItem);

            if (itemIndex < 0)
            {
                return;
            }

            pItem.Selected = true;

            for (int i = 0; i < m_list.Count; i++)
            {
                if (i == itemIndex)
                {
                    continue;
                }

                m_list[i].Selected = false;
            }
        }
示例#4
0
 /// <summary>
 /// Inserts a display item in the next location in the current list
 /// </summary>
 /// <param name="item"></param>
 public void InsertNext(DragableListItem pItem)
 {
     InsertNextIntoListIndex(pItem, _currentListIndex);
 }
示例#5
0
 /// <summary>
 /// Inserts a display item in the next location in the specified list index
 /// </summary>
 /// <param name="item"></param>
 public void InsertNextIntoListIndex(DragableListItem item, int pListIndex)
 {
     GetOrCreateListAtIndex(pListIndex).InsertNext(item);
 }
示例#6
0
 /// <summary>
 /// Inserts a display item in the next location in the current collection
 /// </summary>
 /// <param name="item"></param>
 public void InsertNext(DragableListItem item)
 {
     InsertNextInternal(item);
     UpdateLengths();
 }