private void btnReservationsReportP2_Click(object sender, RoutedEventArgs e)
        {
            ReservationsReport newResReport = new ReservationsReport();

            newResReport.Show();
            this.Close();
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winReservationsReport = ((HotelReservations.ReservationsReport)(target));
                return;

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

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

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

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

            case 6:
                this.btnReservationsReportP5 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 8:
                this.dateCheckInP5 = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

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

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

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

            case 14:
                this.cboRoomTypeP5 = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 16:
                this.imgP5 = ((System.Windows.Controls.Image)(target));
                return;

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