void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameDetailsExpender = ((System.Windows.Controls.Expander)(target));
                return;

            case 2:
                this.GameDetails = ((ScoutingApp.GameDetails)(target));
                return;

            case 3:
                this.MsgLabel = ((ScoutingApp.MsgLabel)(target));
                return;

            case 4:

            #line 37 "..\..\TestTab.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DataListsOnGameListChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.CustomListView = ((ScoutingApp.CustomListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        private void DetailsButtonOnClick(object sender, RoutedEventArgs e)
        {
            MsgLabel.Visibility = Visibility.Collapsed;
            CustomListViewColumn column = (CustomListViewColumn)sender;
            int  idx  = CustomListView.ItemList.Children.IndexOf(column);
            Game game = DataLists.GetGames()[idx];

            GameDetailsExpender.IsExpanded = true;
            GameDetails.ShowDetails(game);
        }