Beispiel #1
0
        private void LoadcmbThuoc()
        {
            ThuocCtrl thuocctr = new ThuocCtrl();

            cmbThuoc.DataSource    = thuocctr.GetData();
            cmbThuoc.DisplayMember = "TenThuoc";
            cmbThuoc.ValueMember   = "MaThuoc";
        }
Beispiel #2
0
        private void thuoc_Load(object sender, EventArgs e)
        {
            DataTable dtDS = new System.Data.DataTable();

            dtDS = THCtr.GetData();
            dgvThuoc.DataSource = dtDS;
            binding();
            DisEnl(false);
        }