Пример #1
0
        private void SeeAlByCategory(Category category)
        {
            List <Item> listofItems = blStock.GetAllByCategory(category);

            itemPanel.Visible = true;
            UC_Item item = new UC_Item(listofItems);

            itemPanel.Controls.Clear();
            itemPanel.Controls.Add(item);
        }
Пример #2
0
        private void CallPanel(int number)
        {
            switch (number)
            {
            case 1:
                UC_Stock stock = new UC_Stock();
                this.Controls.Clear();
                this.Controls.Add(stock);
                break;

            case 2:
                UC_Item item = new UC_Item(blStock.GetAllByCategory(_category));
                this.Controls.Clear();
                this.Controls.Add(item);
                break;
            }
        }