daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top