private void LoadData() { btnHuy.Enabled = false; btnLuu.Enabled = false; btnSua.Enabled = true; btnThem.Enabled = true; btnReload.Enabled = true; txtLoaiThuoc.Enabled = false; dgvLoaiThuoc.DataSource = dvtDAO.getDVT().Tables[0]; }
private void LoadData() { btnHuy.Enabled = false; btnLuu.Enabled = false; btnSua.Enabled = true; btnReload.Enabled = true; comboBox1.DataSource = dvtDAO.getDVT().Tables[0]; comboBox1.DisplayMember = "TenDVT"; comboBox1.ValueMember = "MaDVT"; txtTenThuoc.Enabled = false; comboBox1.Enabled = false; txtGiaBan.Enabled = false; dgvBangGia.DataSource = ctthuocDAO.getChiTietThuoc().Tables[0]; }