protected void UpdateStandings(List <Team> Teams) { // regenerate standings table Standings s = new Standings(); s.Create(StandingTable, Teams); }
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(); }