Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list = new BindingList<PatcherDB>(patches);
- foreach (DataGridViewRow item in dataGridView.Rows)
- {
- //list.Add(item.Cells[1].Value.ToString());
- list.Add(new PatcherDB() {Version = item.Cells[0].Value.ToString(), Release = item.Cells[1].Value.ToString(), Path = item.Cells[2].Value.ToString()});
- MessageBox.Show($"Version = {item.Cells[0].Value.ToString()}, Release = {item.Cells[1].Value.ToString()}, Path = {item.Cells[2].Value.ToString()}");
- }
- var data = JsonConvert.SerializeObject(list);
Add Comment
Please, Sign In to add comment