Beispiel #1
0
        /// <summary>
        /// 获取选中项
        /// </summary>
        /// <returns>选中项数组</returns>
        public SelectableItemDisplay <T>[] getCheckedItemDisplays()
        {
            var cnt   = checkedIndices.Count;
            var items = new SelectableItemDisplay <T> [cnt];

            for (int i = 0; i < cnt; ++i)
            {
                var index = checkedIndices[i];
                items[i] = subViews[index];
            }
            return(items);
        }
Beispiel #2
0
 /// <summary>
 /// 配置子项
 /// </summary>
 protected override void configureSubItem(SelectableItemDisplay <T> sub, int index)
 {
     sub.configure(this, index);
 }