Пример #1
0
        public void LoadData()
        {
            listCategory = busCT.GetListCategory();
            list         = busMT.GetListMilkTea();

            cboCategory.Items.Clear();
            foreach (Category dto in listCategory)
            {
                cboCategory.Items.Add(new Category(dto.CategoryID, dto.CategoryName));
            }
            //cboCategory.DataSource = listCategory;
            //cboCategory.DisplayMember = "CategoryID - CategoryName";

            dgvMilkTea.DataSource = list;
            btnUpdate.Enabled     = false;
        }
Пример #2
0
        private void LoadCategory()
        {
            List <Category> listCategory = categoryBUS.GetListCategory();

            cbCategory.DataSource    = listCategory;
            cbCategory.DisplayMember = "categoryName";
        }
Пример #3
0
 public void LoadData()
 {
     listCategory           = busCT.GetListCategory();
     dgvCategory.DataSource = listCategory;
 }