private void InsertNextInternal(DragableListItem item) { //item.Bounds = new RectF(0, 0, this.Width, _listItemSize); item.Index = this._listItemCollection.Count; this._listItemCollection.Add(item); }
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); }
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; } }
/// <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); }
/// <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); }
/// <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(); }