Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class graphdata
  2. {
  3. DateTime Date;
  4. int Sales;
  5. int SOH;
  6. }
  7.  
  8. List<graphdata> chartdata = new List<graphdata>();
  9. graphdata tempdata = new graphdata();
  10.  
  11. foreach (var row in result)
  12. {
  13. tempdata.Date = row.Date;
  14. tempdata.Sales = row.Sales;
  15. tempdata.SOH = row.SOH;
  16. chartdata.Add(tempdata);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement