Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winNearbyHoosierHotels = ((Group5.Window1)(target));
                return;

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

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

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

            case 5:
                this.txtZipCode = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 8:
                this.txtOutput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.btnReturnToMainMenu = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winNewReservation = ((Group5.Window1)(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 "..\..\Window2.xaml"
                this.btnCreateReservation.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

            case 18:
                this.cbbCreditCardType = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 21:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

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

            case 23:
                this.txtQuoteResult = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }