Пример #1
0
        /// <summary>
        /// processes reservation information to ReservationData.txt file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Btn_Payment_Click(object sender, EventArgs e)
        {
            this.Close();
            //
            //payment form is a work in progress
            //
            // guestReservation.IsPaid = true;

            //writes reservation data to file
            guestReservation.SaveReservationData(guestReservation);

            //prompt user to check customer in now

            DialogResult result;
            string       confirm = "Guest Reservation has been saved!";
            string       message = "Check in now?";

            result = MessageBox.Show(message, confirm, MessageBoxButtons.YesNo);
            if (result == DialogResult.Yes)
            {
                //if yes user is taken to check in screen
                CheckInScreen checkInScreen = new CheckInScreen();
                checkInScreen.ShowDialog();
            }
            else
            {
                //if no user is taken to refreshed reservation screen
                ReservationScreen reservationScreen = new ReservationScreen();
                reservationScreen.ShowDialog();
            }
        }
Пример #2
0
        //opens form for guest reservation
        private void Btn_ReservationAccess_Click(object sender, EventArgs e)
        {
            ReservationScreen reservationScreen = new ReservationScreen();

            reservationScreen.ShowDialog();
        }