private void Visits_CellContentClick(object sender, DataGridViewCellEventArgs e) { int indexRow = e.RowIndex; //MessageBox.Show("Click; visit result. " + allVisits[ e.RowIndex ].getResult() ); VisitsScreen vs = new VisitsScreen(allVisits[e.RowIndex], allVisits[e.RowIndex].getPath(), thisP); vs.Show(); }
private void AddVisit_Click(object sender, EventArgs e) { VisitsScreen vs = new VisitsScreen(null, thisP.nextFreeVisit(), thisP); vs.Show(); }