private void btn_ThemBacSiGui_Click(object sender, EventArgs e) { frmBacSiGui f = new frmBacSiGui(); f.ShowDialog(); cbx_BacSiGui.DataSource = BacSi_Info.SelectAllTable2(); cbx_BacSiGui.ValueMember = "HoTen"; cbx_BacSiGui.DisplayMember = "BacSiID"; cbx_BacSiGui.Select(); }
private void btn_ThemBacSiGui_Click(object sender, EventArgs e) { frmBacSiGui f = new frmBacSiGui(); f.ShowDialog(); cbx_BacSiGui.DataSource = load_bs(); cbx_BacSiGui.ValueMember = "BacSiID"; cbx_BacSiGui.DisplayMember = "HoTen"; }
private void ultraExplorerBar1_ItemClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e) { keyoks = e.Item.Key; switch (e.Item.Key) { case "dontiep": frmDonTiep f1 = new frmDonTiep(); active("dontiep", f1); break; case "quantri": QuanTri f2 = new QuanTri(); active("quantri", f2); break; case "benhnhandv": frmBenhNhan_DV f3 = new frmBenhNhan_DV(); active("benhnhandv", f3); break; case "danhsachbn": frmDanhSachBN f4 = new frmDanhSachBN(); active("danhsachbn", f4); break; case "baocao": ChonBaoCao f5 = new ChonBaoCao(); active("baocao", f5); break; case "dichvu": frmDichVu f6 = new frmDichVu(); active("dichvu", f6); break; case "phong": frmPhong f7 = new frmPhong(); active("phong", f7); break; case "bacsi": frmBacSiGui f8 = new frmBacSiGui(); active("bacsi", f8); break; } }