示例#1
0
        public frmChitietnhanhphong(ReceiveDTO receiveRoom)
        {
            InitializeComponent();
            ReceiveRoom = receiveRoom;

            customers = (List <CustomerDTO>)CustomerBLL.Instance.readAll();
        }
示例#2
0
 private void gunaButton1_Click(object sender, EventArgs e)
 {
     if (idReceive == "" || nameCustomer == "" || Cmnd == "" || nameRoom == "" || dateIn == "" || dateOut == "")
     {
         MessageBox.Show("Chọn lại phòng cần xem!");
     }
     else
     {
         receiveRoom = new ReceiveDTO(Convert.ToInt32(idReceive), nameCustomer, Cmnd, nameRoom, DateTime.Parse(dateIn), DateTime.Parse(dateOut));
         if (dtgvNhanPhong.Rows.Count > 1 && receiveRoom != null)
         {
             frmChitietnhanhphong frm = new frmChitietnhanhphong(receiveRoom);
             frm.EventUpdateHandler    += Frm_EventUpdateHandler;
             frm.EventUpdateHandlerCus += Frm_EventUpdateHandlerCus;
             frm.Show();
         }
         else
         {
             MessageBox.Show("Không có phòng cần xem!");
         }
     }
 }