public formPKB() { InitializeComponent(); QuanLyThuoc qlT = new QuanLyThuoc(); //comboBox1.DataSource = qlT.loadListToSelect(); }
private void btnQLT_Sua_Click(object sender, EventArgs e) { QuanLyThuoc qlT = new QuanLyThuoc(); Thuoc t = new Thuoc(); t.themThuoc(010, textBoxQLT_TenThuoc.Text.ToString(), int.Parse(textBoxQLT_DonViTinh.Text.ToString()), int.Parse(textBoxQLT_DonViTinh.Text.ToString()), int.Parse(textBoxQLT_DonGia.Text.ToString()), 0); qlT.editMedicine(t); }
public formMain() { InitializeComponent(); QuanLyThuoc qlT = new QuanLyThuoc(); DataTable dt = new DataTable(); dt = qlT.LoadListAvailable(); dataDSThuoc.DataSource = dt; }
private void btnQLT_Xoa_Click(object sender, EventArgs e) { QuanLyThuoc qlT = new QuanLyThuoc(); qlT.deleteMedicine(textBoxQLT_TenThuoc.Text.ToString()); }