Guest User

Untitled

a guest
Mar 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var list = new BindingList<PatcherDB>(patches);
  2.  
  3. foreach (DataGridViewRow item in dataGridView.Rows)
  4. {
  5. //list.Add(item.Cells[1].Value.ToString());
  6. list.Add(new PatcherDB() {Version = item.Cells[0].Value.ToString(), Release = item.Cells[1].Value.ToString(), Path = item.Cells[2].Value.ToString()});
  7. MessageBox.Show($"Version = {item.Cells[0].Value.ToString()}, Release = {item.Cells[1].Value.ToString()}, Path = {item.Cells[2].Value.ToString()}");
  8. }
  9.  
  10. var data = JsonConvert.SerializeObject(list);
Add Comment
Please, Sign In to add comment