예제 #1
0
        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);
            }
        }
예제 #2
0
        private void BuildStandingsView(WeekendStandings weekendStandings)
        {
            WeekendStandingsView wsv = new WeekendStandingsView(weekendStandings);

            Extender.BuildGridForView(grdStandings, wsv, false);
        }
예제 #3
0
        private void Init(WeekendStandings weekendStandings)
        {
            WeekendStandingsView view = new WeekendStandingsView(weekendStandings);

            ctrStandings.Init(view);
        }