public void Init(Weekend weekend) { this.weekend = weekend; NonRaceSessionView nrsv = null; RaceSessionView rsv = null; InitWeekendTab(weekend); nrsv = new NonRaceSessionView(weekend.Practice); ctrPractice.Init(nrsv); nrsv = new NonRaceSessionView(weekend.Qualify); ctrQualify.Init(nrsv); nrsv = new NonRaceSessionView(weekend.HappyHour); ctrPreRace.Init(nrsv); if (weekend.Settings != null) { rsv = new RaceSessionView(weekend.Race, weekend.Settings.RaceLapCount); ctrRace.Init(rsv); } }
internal void Init(NonRaceSessionView nrsv) { Extender.BuildGridForView(grd, nrsv, false); }