Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyRating = ((PointsOfInterest.Rating)(target));
                return;

            case 2:

            #line 12 "..\..\TestRate.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MusImg = ((System.Windows.Controls.Image)(target));
                return;

            case 2:
                this.MusRate = ((PointsOfInterest.Rating)(target));
                return;

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

            #line 13 "..\..\MuseumWindow.xaml"
                this.RateBtn.Click += new System.Windows.RoutedEventHandler(this.AddRate_Button);

            #line default
            #line hidden
                return;

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

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

            case 6:
                this.AverageRate = ((PointsOfInterest.Rating)(target));
                return;

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

            case 8:

            #line 20 "..\..\MuseumWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddComment_Button);

            #line default
            #line hidden
                return;

            case 9:

            #line 21 "..\..\MuseumWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ViewComments_Button);

            #line default
            #line hidden
                return;

            case 10:

            #line 22 "..\..\MuseumWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BackToMuseums_Button);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\MuseumWindow.xaml"
                this.DeleteRateBtn.Click += new System.Windows.RoutedEventHandler(this.DeleteRateBtn_Click);

            #line default
            #line hidden
                return;

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