Example #1
0
 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);
         }
     }
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
 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);
         }
     }
 }