Esempio n. 1
0
        private void loadItemDescription()
        {
            List <ItemDTO> itemList = new List <ItemDTO>();

            itemList = ItemController.viewItems();
            foreach (ItemDTO item in itemList)
            {
                cmbItemDescription.Items.Add(item.getItemName());
            }
        }
Esempio n. 2
0
        void loadTable()
        {
            List <ItemDTO> itemList = new List <ItemDTO>();

            itemList         = ItemController.viewItems();
            tblItem.RowCount = 0;
            foreach (ItemDTO cust in itemList)
            {
                String[] row = new String[] { cust.getItemCode(), cust.getItemName(), cust.getPrice().ToString(), cust.getQuantity().ToString() };
                tblItem.Rows.Add(row);
            }
        }