public static List<HorseInfo> LoadFromDb(Factor factor) { var hi = new List<HorseInfo>(); using (var dbr = new DbReader()) { var sql = string.Format("EXEC SelectAllMatchingHorsesByFactorsFlag {0}", factor.BitMask); if (dbr.Open(sql)) { while (dbr.MoveToNextRow()) { hi.Add(new HorseInfo(dbr)); } } } return hi; }
public HandicappingFactorLabel(Factor f, string trackCode) { _factor = f; _trackCode = trackCode; InitializeComponent(); }