void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PitDetailsExpander = ((System.Windows.Controls.Expander)(target)); return; case 2: this.PitDetails = ((ScoutingApp.PitDetails)(target)); return; case 3: this.MsgLabel = ((ScoutingApp.MsgLabel)(target)); return; case 4: #line 39 "..\..\PitTab.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DataListsOnPitListChanged); #line default #line hidden return; case 5: this.CustomListView = ((ScoutingApp.CustomListView)(target)); return; } this._contentLoaded = true; }
private void DetailsButtonOnClick(object sender, RoutedEventArgs e) { MsgLabel.Visibility = Visibility.Collapsed; CustomListViewColumn column = (CustomListViewColumn)sender; int idx = CustomListView.ItemList.Children.IndexOf(column); Pit pit = DataLists.GetPits()[idx]; PitDetailsExpander.IsExpanded = true; PitDetails.ShowDetails(pit); }