Exemplo n.º 1
0
        protected void UpdateStandings(List <Team> Teams)
        {
            // regenerate standings table
            Standings s = new Standings();

            s.Create(StandingTable, Teams);
        }
Exemplo n.º 2
0
        public void Create(Control c, List <Team> Teams)
        {
            List <Team> SortedTeams = Teams.OrderByDescending(o => o.WinPct()).ToList();
            Standings   s           = new Standings();
            DataGrid    Grid        = (DataGrid)c;

            Grid.DataSource = s.CreateStandings(SortedTeams);
            Grid.DataBind();
        }