示例#1
0
 private CurryOrder CurryOrder_OnItemDataBound(object sender, CsvMapperEventArgs e)
 {
     return(new CurryOrder
     {
         Curry = e.MapColumn <string>(0),
         Quantity = e.MapColumn <int>(1),
         Price = e.ParseColumn <decimal>(2),
         Total = e.ParseColumn <decimal>(3)
     });
 }
示例#2
0
 private TranslationLabel CsvProcessor_OnItemDataBound(object sender, CsvMapperEventArgs e)
 {
     return(new TranslationLabel
     {
         LabelName = e.MapColumn <string>(this.mappings["LabelName"]),
         English = e.MapColumn <string>(this.mappings["English"]),
         German = e.MapColumn <string>(this.mappings["German"]),
         French = e.MapColumn <string>(this.mappings["French"]),
         Italian = e.MapColumn <string>(this.mappings["Italian"]),
         Polish = e.MapColumn <string>(this.mappings["Polish"])
     });
 }
示例#3
0
 private CurryOrder CurryOrder_OnItemDataBound(object sender, CsvMapperEventArgs e)
 {
     return new CurryOrder
     {
         Curry = e.MapColumn<string>(0),
         Quantity = e.MapColumn<int>(1),
         Price = e.ParseColumn<decimal>(2),
         Total = e.ParseColumn<decimal>(3)
     };
 }