public WeekendStandingsView(WeekendStandings ws) { if (ws == null) { return; } DriverStandings standingOfFirstDriver = ws.FirstOrDefault(i => i.Position == 1); foreach (var item in ws) { Item wsvi = new Item(item, standingOfFirstDriver); inner.Add(wsvi); } }
private void BuildStandingsView(WeekendStandings weekendStandings) { WeekendStandingsView wsv = new WeekendStandingsView(weekendStandings); Extender.BuildGridForView(grdStandings, wsv, false); }
private void Init(WeekendStandings weekendStandings) { WeekendStandingsView view = new WeekendStandingsView(weekendStandings); ctrStandings.Init(view); }