コード例 #1
0
        public TransactionViewItem Select(int index)
        {
            List <TransactionViewItem> list = GetItems();

            if (index >= list.Count)
            {
                throw new ArgumentOutOfRangeException("Index " + index + " is out of range, list only has " + list.Count + " items");
            }

            TransactionViewItem item = list[index];

            item.Select();
            return(item);
        }
コード例 #2
0
        internal void Delete(int index)
        {
            TransactionViewItem item = Select(index);

            item.Delete();
        }