private void cmdThemHoaDon_Click(object sender, RoutedEventArgs e)
 {
     frmHoaDonDichVuEdit HoaDonDichVuEdit = new frmHoaDonDichVuEdit();
     HoaDonDichVuEdit.Closed += new EventHandler(HoaDonDichVuEdit_Closed);
     HoaDonDichVuEdit.HoaDonDichVu_Load(0);
     HoaDonDichVuEdit.Show();
 }
 private void cmdSuaHoaDon_Click(object sender, RoutedEventArgs e)
 {
     HyperlinkButton cmdSuaHoaDon = sender as HyperlinkButton;
     int HoaDonDichVuID = int.Parse(cmdSuaHoaDon.CommandParameter.ToString());
     frmHoaDonDichVuEdit HoaDonDichVuEdit = new frmHoaDonDichVuEdit();
     HoaDonDichVuEdit.Closed += new EventHandler(HoaDonDichVuEdit_Closed);
     HoaDonDichVuEdit.HoaDonDichVu_Load(HoaDonDichVuID);
     HoaDonDichVuEdit.Show();
 }
 void menuItem_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
 {
     RadMenuItem menuItem = sender as RadMenuItem;
     TinhTrang_PhongInfo item = menuItem.CommandParameter as TinhTrang_PhongInfo;
     switch (menuItem.Tag.ToString())
     {
         case "ThongTinPhong":
             frmChiTietPhong ChiTietPhong = new frmChiTietPhong();
             ChiTietPhong.Closed += new EventHandler(ChiTietPhong_Closed);
             ChiTietPhong.Show();
             ChiTietPhong.Phong_Load(item.PhongID,item.TinhTrangPhongID);
             break;
         case "DanhSachKhachHang":
             frmPhong_KhachHang_NhanPhong DanhSachKhachHang_NhanPhong = new frmPhong_KhachHang_NhanPhong();
             DanhSachKhachHang_NhanPhong.Title = "Danh sách khách hàng phòng " + item.PhongName;
             DanhSachKhachHang_NhanPhong.Phong_KhachHang_Load(item.HoaDonID, item.PhongID);
             DanhSachKhachHang_NhanPhong.Show();
             break;
         case "DanhSachDatPhong":
             frmPhong_KhachHang_DatPhong DanhSachKhachHang_DatPhong = new frmPhong_KhachHang_DatPhong();
             DanhSachKhachHang_DatPhong.Title = "Danh sách khách hàng đặt phòng " + item.PhongName;
             DanhSachKhachHang_DatPhong.Phong_KhachHang_DatPhong_Load(item.HoaDonID, item.PhongID);
             DanhSachKhachHang_DatPhong.Show();
             break;
         case "TraPhong":
             frmPhong_KhachHang_TraPhong DanhSachKhachHang_TraPhong = new frmPhong_KhachHang_TraPhong();
             DanhSachKhachHang_TraPhong.LoadData(item.HoaDonID, item.PhongID);
             DanhSachKhachHang_TraPhong.Closed += new EventHandler(DanhSachKhachHang_TraPhong_Closed);
             DanhSachKhachHang_TraPhong.Show();
             break;
         case "XemThemDichVu":
             frmHoaDonDichVuEdit HoaDonDichVu = new frmHoaDonDichVuEdit();
             HoaDonDichVu.DichVu_Load(item.HoaDonID, item.PhongID);
             HoaDonDichVu.Show();
             break;
         case "CapNhatNgayRaDuTinh":
             frmPhong_CapNhatNgayRa Phong_CapNhatNgayRa = new frmPhong_CapNhatNgayRa();
             Phong_CapNhatNgayRa.HoaDon_Load(item.HoaDonID);
             Phong_CapNhatNgayRa.Show();
             break;
         case "ChuyenPhong":
             frmKhachHang_ChuyenPhong KhachHang_ChuyenPhong = new frmKhachHang_ChuyenPhong();
             KhachHang_ChuyenPhong.ChuyenPhong_Load(item.HoaDonID, item.PhongID);
             KhachHang_ChuyenPhong.Closed += new EventHandler(KhachHang_ChuyenPhong_Closed);
             KhachHang_ChuyenPhong.Show();
             break;
     }
 }