コード例 #1
0
        /// <summary>
        /// show item list
        /// </summary>
        private void ShowItemList(CategoryModel model)
        {
            this._itemList.Clear();
            if (null == model)
            {
                return;
            }

            using (var table = new ItemsTable(this._profileDatabase)) {
                table.SelectAllById(model.Id);
                while (table.Read())
                {
                    this._itemList.Add(new ItemModel(table));
                }
            }
        }