示例#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();
        }