//Redirect users to the new reservation window to proceed with their booking
 private void btnMakeReservation_Click(object sender, RoutedEventArgs e)
 {
     if (bolRoomAvailable)
     {
         NewReservation newRes = new NewReservation(CurReservation);
         newRes.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("The room is not available. Please enter another room quote to review. Must review quote before creating room reservation.");
         return;
     }
 }
 //Redirigir a los usuarios a la nueva ventana de reserva para continuar con su reserva.
 private void btnMakeReservation_Click(object sender, RoutedEventArgs e)
 {
     if (bolRoomAvailable)
     {
         NewReservation newRes = new NewReservation(CurReservation);
         newRes.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("La habitación no está disponible. Por favor ingrese otra habitación para revisar. Debe revisar la cotización antes de crear la reserva de habitación.");
         return;
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winNewReservation = ((Group5.NewReservation)(target));
                return;

            case 2:
                this.lblPhone = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lblCreditCardNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.lblLastName = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lblFirstName = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.txtFirstName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.txtLastName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.lblCreditCardType = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.lblEmail = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.btnCreateReservation = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\NewReservation.xaml"
                this.btnCreateReservation.Click += new System.Windows.RoutedEventHandler(this.btnCreateReservation_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnClear = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\NewReservation.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.lblTitle = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.txtCreditCardNumber = ((System.Windows.Controls.TextBox)(target));

            #line 21 "..\..\NewReservation.xaml"
                this.txtCreditCardNumber.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.txtCreditCardNumber_LostKeyboardFocus);

            #line default
            #line hidden
                return;

            case 14:
                this.txtPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.txtEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.btnReturnToMainMenu = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\NewReservation.xaml"
                this.btnReturnToMainMenu.Click += new System.Windows.RoutedEventHandler(this.btnReturnToMainMenu_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.lblReservationConfirmation = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.imgCreditCardLogo = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.lblReservationDetails = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\NewReservation.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.lblCreditCardTypeResult = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.borQuoteReview = ((System.Windows.Controls.Border)(target));
                return;

            case 23:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.lblRoomQuantityResult = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.lblSubtotalResult = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.lblTaxResult = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lblConvenienceFeeResult = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.lblTotalResult = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lblRoomRatesResult = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.lblRoomQuantity = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.lblSubtotal = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.lblTax = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.lblConvenienceFee = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.lblTotal = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.lblRoomRates = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.lblTotal_Copy = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }