private void frmThanhToan_FormClosing(object sender, FormClosingEventArgs e) { PhongBUS pbus = new PhongBUS(); home.cleanGiaoDien(); home.TaoGiaoDienPhong(pbus.getallphong(), pbus.gettinhtrangp(false), pbus.gettinhtrangp(true), "Phòng"); }
private void frmDatKhachDoan_FormClosing(object sender, FormClosingEventArgs e) { PhongBUS pbus = new PhongBUS(); frm.AnflowLayoutPanel(); frm.TaoGiaoDienPhong(pbus.getallphong(), pbus.gettinhtrangp(false), pbus.gettinhtrangp(true), "Phòng"); }
//Load lại giao diện chính khi đã đặt phòng xong private void frmDatPhong_FormClosing(object sender, FormClosingEventArgs e) { if (kieuForm == 1) { PhongBUS pbus = new PhongBUS(); frmHome.cleanGiaoDien(); frmHome.TaoGiaoDienPhong(pbus.getallphong(), pbus.gettinhtrangp(false), pbus.gettinhtrangp(true), "Phòng"); } }
private void frmPhong_FormClosing(object sender, FormClosingEventArgs e) { PhongBUS pbus = new PhongBUS(); if (frm.ExitAllForm()) { frm.AnflowLayoutPanel(); frm.TaoGiaoDienPhong(pbus.getallphong(), pbus.gettinhtrangp(false), pbus.gettinhtrangp(true), "Phòng"); } }