public void load() { IphongApiClient client = new IphongApiClient(); try { chitietdatphong chitiet = client.getPhongById(idP); lb_tenp.Text = chitiet.Phong.Name; lb_lp.Text = chitiet.Phong.LoaiPhong.Mota; lp_gp.Text = chitiet.Phong.LoaiPhong.Gia.ToString(); txt_songuoidp.Text = chitiet.Phieudatphong.Songuoi.ToString() + "/" + chitiet.Phong.LoaiPhong.SoNguoi.ToString(); txt_ten.Text = chitiet.Phieudatphong.Khachhang.Hoten; txt_sdt.Text = chitiet.Phieudatphong.Khachhang.Sdt; txt_socm.Text = chitiet.Phieudatphong.Khachhang.Cmt; txt_ngayden.Text = chitiet.Phieudatphong.Ngayden.ToString(); rd_kt.Checked = true; idpdp = chitiet.Id_pdp; } catch { MessageBox.Show("Xảy ra lỗi mời thử lại"); //this.Hide(); } }