Esempio n. 1
0
        private void viewCheckInToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            fViewCheckIn f = new fViewCheckIn();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Esempio n. 2
0
        private void btnCheckIn_Click(object sender, EventArgs e)
        {
            int    idRoom       = Convert.ToInt32(txbIdRoomBookRoom.Text);
            string statusupdate = "checkin";

            RoomDAO.Instance.UpdateStatusRoom(idRoom, statusupdate);
            if (MessageBox.Show("Check In thành công!", "Thông báo", MessageBoxButtons.OKCancel) == System.Windows.Forms.DialogResult.OK)
            {
                fViewCheckIn f = new fViewCheckIn();
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
        }