Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (e.ColumnIndex == 1 && e.RowIndex >= 0)
- {
- string id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
- dataGridView1.Rows[e.RowIndex].Cells[2].Value = "Running";
- dataGridView1.Rows[e.RowIndex].Cells[1].Value = "Stop";
- //MessageBox.Show(id);
- Task mytask = Task.Run(() =>
- {
- // mytask.Id = 1;
- adimonitor adi = new adimonitor();
- adi.start(id);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement