//When the Create Reservation is clicked
        private void btnReservation_Click(object sender, RoutedEventArgs e)
        {
            // if bolQuote is false, display an error message
            if (bolQuote == false)
            {
                MessageBox.Show("A quote must be created before a reservation can be made.");
                return;
            }

            New_Reservation_2 CompleteReservation = new New_Reservation_2(MyQuote);

            CompleteReservation.Show();
            this.Close();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winCustomerInfo = ((Group03.New_Reservation_2)(target));
                return;

            case 2:
                this.grbReservationDetails = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

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

            case 6:
                this.lblCardType = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblCardNo = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            case 12:
                this.txtCardType = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

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

            case 18:
                this.lblRoomType = ((System.Windows.Controls.Label)(target));
                return;

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

            case 20:
                this.lblCheckOut = ((System.Windows.Controls.Label)(target));
                return;

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

            case 22:
                this.lblRoomTypeOut = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

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

            case 28:
                this.lblNoOfRoomsOut = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winCustomerInfo = ((Group03.New_Reservation_2)(target));
                return;

            case 2:
                this.grbReservationDetails = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

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

            case 6:
                this.lblCardType = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblCardNo = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            case 12:
                this.txtCardType = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 24 "..\..\New Reservation 2.xaml"
                this.txtCardNo.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.CardNumber_TextChange);

            #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.btnConfirm = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\New Reservation 2.xaml"
                this.btnConfirm.Click += new System.Windows.RoutedEventHandler(this.btnConfirm_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 18:
                this.lblRoomType = ((System.Windows.Controls.Label)(target));
                return;

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

            case 20:
                this.lblCheckOut = ((System.Windows.Controls.Label)(target));
                return;

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

            case 22:
                this.lblRoomTypeOut = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

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

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