private void ManifestGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (ManifestGrid.Columns[e.ColumnIndex].Name != "View") return; string resultIndex = ManifestGrid.Rows[e.RowIndex].Cells["Index"].Value.ToString(); int sourceIndex = int.Parse(resultIndex); Manifest selectedManifest = route.Manifests[sourceIndex]; ManifestEditorDialog dialog = new ManifestEditorDialog(selectedManifest); dialog.ShowDialog(); }
private void ManifestGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (ManifestGrid.Columns[e.ColumnIndex].Name != "View") { return; } string resultIndex = ManifestGrid.Rows[e.RowIndex].Cells["Index"].Value.ToString(); int sourceIndex = int.Parse(resultIndex); Manifest selectedManifest = route.Manifests[sourceIndex]; ManifestEditorDialog dialog = new ManifestEditorDialog(selectedManifest); dialog.ShowDialog(); }