Beispiel #1
0
 /// <summary />
 private void FlagCommandExecuted(object sender, ExecutedRoutedEventArgs e)
 {
     if (this.playerView != null && this.playerView.Visibility == System.Windows.Visibility.Visible)
     {
         PlayerViewModel item = this.playerView.SelectedItem;
         MarkedPlayers.Evaluate(item.PlayerData.Name);
     }
     else if (this.defenseView != null && this.defenseView.Visibility == System.Windows.Visibility.Visible)
     {
         Item_DST item = this.defenseView.dg.SelectedItem as Item_DST;
         MarkedPlayers.Evaluate(item.TeamName);
     }
 }
Beispiel #2
0
        private void WhenRefreshInjuryStatusClicked(object sender, RoutedEventArgs e)
        {
            ProFootballReferenceParser parser = new ProFootballReferenceParser(null);

            parser.UpdatePlayerInjuryStatus(YEAR, ref this.season, p => MarkedPlayers.IsMarked(p.Name));
        }