Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. if (e.ColumnIndex == 1 && e.RowIndex >= 0)
  2. {
  3. string id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
  4. dataGridView1.Rows[e.RowIndex].Cells[2].Value = "Running";
  5. dataGridView1.Rows[e.RowIndex].Cells[1].Value = "Stop";
  6. //MessageBox.Show(id);
  7.  
  8. Task mytask = Task.Run(() =>
  9. {
  10. // mytask.Id = 1;
  11. adimonitor adi = new adimonitor();
  12. adi.start(id);
  13. });
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement