private void btnNewReservationP2_Click(object sender, RoutedEventArgs e)
        {
            NewReservation newRes = new NewReservation();

            newRes.Show();
            this.Close();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winNewReservation = ((HotelReservations.NewReservation)(target));
                return;

            case 2:
                this.btnMainMenuP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.btnNewReservationP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.btnRoomManagementP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.btnReservationsReportP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.dateCheckOutP2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.dateCheckInP2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 8:
                this.cboRoomTypeP2 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.sldRoomNumberP2 = ((System.Windows.Controls.Slider)(target));
                return;

            case 10:
                this.lblRoomTypeLabelP2 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.lblCheckInDateLabelP2 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 13:
                this.lblRoomNumbersLabelP2 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.btnGetQuoteP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.btnProceedQuoteP2 = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.lblNewReservationP2 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.imgP2 = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.dtgQuoteP2 = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }