Пример #1
0
        private void btnTraTien_Click(object sender, EventArgs e)
        {
            RoomAccess data = new RoomAccess();

            if (data.CheckOUt(bookingIDaa, customerIDaa, roomNoaa, totaldayaa, totalaa))
            {
                MessageBox.Show("Trả Phòng Thành Công");
                this.Hide();
                Thread t = new Thread(new ThreadStart(showServerForm));
                t.Start();
                this.Close();
            }
            else
            {
                MessageBox.Show("Trả Phòng Không Thành Công");
                this.Hide();
                Thread t = new Thread(new ThreadStart(showServerForm));
                t.Start();
                this.Close();
            }
        }