예제 #1
0
        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");
        }
예제 #3
0
 //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");
     }
 }
예제 #4
0
        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");
            }
        }