private void mapScores(DataTable scores) { foreach (DataRow row in scores.Rows) { try { var score = ClassMapper.Map <Score>(row); CIRCBot.Users.Add(score); } catch (Exception ex) { Console.WriteLine(ex); } } }
private void mapParams(DataTable paramInts) { Params.Reset(); foreach (DataRow row in paramInts.Rows) { try { var paramInt = ClassMapper.Map <ParamInt>(row); Params.Add(paramInt); } catch (Exception ex) { Console.WriteLine(ex); } } }
private void mapSeasons(DataTable seasons) { Seasons.Reset(); foreach (DataRow row in seasons.Rows) { try { var season = ClassMapper.Map <Season>(row); season.ParseData(); Seasons.Add(season); } catch (Exception ex) { Console.WriteLine(ex); } } }