Exemple #1
0
        private void bt_reserve_Click(object sender, EventArgs e)
        {
            guest   = new Guest();
            reserve = new Reservation();

            _ReservationLogic.AddToDB(tb_guestName.Text, tb_guestPhone.Text,
                                      tb_guestEmail.Text, Convert.ToInt32(nud_numberOfGuests.Value), JoinDateTime(),
                                      inputCommentGuest.Text, OptionHidePrices());

            // https://stackoverflow.com/questions/15569641/reset-all-the-items-in-a-form
            // Makes a new instance of the form and loads it
            //ReservationForm NewForm = new ReservationForm();
            //NewForm.Show();
            //this.Dispose(false);

            this.Clear();
        }