Пример #1
0
        public TargetCenter(League league)
        {
            InitializeComponent();
            this.league = league;
            LeagueConstants lc = LeagueConstants.For(league.FantasyLeague);

            foreach (Team team in this.league.Teams)
            {
                this.cbTeams.Items.Add(team.Name);
            }

            UIUtilities.PrepRosterAnalysisPlayerList(this.league, this.lvPlayers);
        }
Пример #2
0
        public SnakeCenter(League league, string fileName, string myTeam)
        {
            InitializeComponent();
            this.Text               = string.Format("League Center for {0}", myTeam);
            this.league             = league;
            this.fileName           = fileName;
            this.myTeam             = myTeam;
            this.teamsForAssignment = new List <string>(this.league.Teams.Select(t => t.Name));
            this.teamsForAssignment.Add(string.Empty);
            this.teamsForAssignment.Sort();

            UIUtilities.PrepRosterAnalysisPlayerList(this.league, this.lvTarget);
            UIUtilities.PrepStatsPlayerList(this.league, this.lvStats);
            UIUtilities.PrepPointsPlayerList(this.league, this.lvPlayers);
            this.UpdatePlayerList();
        }
Пример #3
0
 private void UpdatePlayerList()
 {
     UIUtilities.UpdateRosterAnalysisPlayerList(this.league, this.myTeam, this.lvTarget, this.PlayerPassesFilter);
     UIUtilities.UpdateStatsPlayerList(this.league, this.lvStats, this.PlayerPassesFilter);
     UIUtilities.UpdatePointsPlayerList(this.league, this.lvPlayers, this.PlayerPassesFilter);
 }
Пример #4
0
 private void OnTeamSelected(object sender, EventArgs e)
 {
     UIUtilities.UpdateRosterAnalysisPlayerList(this.league, this.cbTeams.Items[this.cbTeams.SelectedIndex].ToString(), this.lvPlayers, this.PlayerPassesFilters);
 }