示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyWindow = ((Movies.MainWindow)(target));
                return;

            case 2:
                this.Image_Here = ((System.Windows.Controls.Image)(target));
                return;

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

            case 4:
                this.MovieList = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:
                this.FightClub = ((System.Windows.Controls.ListBoxItem)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.FightClub.Selected += new System.Windows.RoutedEventHandler(this.FightClub_Selected);

            #line default
            #line hidden
                return;

            case 6:
                this.ForrestGump = ((System.Windows.Controls.ListBoxItem)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.ForrestGump.Selected += new System.Windows.RoutedEventHandler(this.ForrestGump_Selected);

            #line default
            #line hidden
                return;

            case 7:
                this.PulpFiction = ((System.Windows.Controls.ListBoxItem)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.PulpFiction.Selected += new System.Windows.RoutedEventHandler(this.PulpFiction_Selected);

            #line default
            #line hidden
                return;

            case 8:
                this.Inception = ((System.Windows.Controls.ListBoxItem)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.Inception.Selected += new System.Windows.RoutedEventHandler(this.Inception_Selected);

            #line default
            #line hidden
                return;

            case 9:
                this.Prestige = ((System.Windows.Controls.ListBoxItem)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.Prestige.Selected += new System.Windows.RoutedEventHandler(this.Prestige_Selected);

            #line default
            #line hidden
                return;

            case 10:
                this.Island = ((System.Windows.Controls.ListBoxItem)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.Island.Selected += new System.Windows.RoutedEventHandler(this.Island_Selected);

            #line default
            #line hidden
                return;

            case 11:
                this.Basterds = ((System.Windows.Controls.ListBoxItem)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.Basterds.Selected += new System.Windows.RoutedEventHandler(this.Basterds_Selected);

            #line default
            #line hidden
                return;

            case 12:
                this.Departed = ((System.Windows.Controls.ListBoxItem)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.Departed.Selected += new System.Windows.RoutedEventHandler(this.Departed_Selected);

            #line default
            #line hidden
                return;

            case 13:
                this.Suspects = ((System.Windows.Controls.ListBoxItem)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.Suspects.Selected += new System.Windows.RoutedEventHandler(this.Suspects_Selected);

            #line default
            #line hidden
                return;

            case 14:
                this.Redemption = ((System.Windows.Controls.ListBoxItem)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.Redemption.Selected += new System.Windows.RoutedEventHandler(this.Redemption_Selected);

            #line default
            #line hidden
                return;

            case 15:
                this.Title_Label = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

            case 19:
                this.Description_Content = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 22:
                this.Rating = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyWindow = ((Movies.MainWindow)(target));
                return;

            case 2:
                this.Image_Here = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.MovieList = ((System.Windows.Controls.ListBox)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.MovieList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MovieList_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            case 8:
                this.Description_Content = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 10:
                this.StarIcon = ((System.Windows.Controls.Image)(target));
                return;

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

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

            case 13:
                this.Trailer_Link = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.Trailer_Link.Click += new System.Windows.RoutedEventHandler(this.Trailer_Link_Click);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\MainWindow.xaml"
                this.Update.Click += new System.Windows.RoutedEventHandler(this.Update_Click);

            #line default
            #line hidden
                return;

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

            #line 73 "..\..\MainWindow.xaml"
                this.Refresh.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click);

            #line default
            #line hidden
                return;

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

            #line 74 "..\..\MainWindow.xaml"
                this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSearch_TextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }