private void HistoryButton_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in dataGridView1.SelectedRows) { if (row.Cells[0].Value != null) { secID = (int)row.Cells[0].Value; } } FileHistory flh = new FileHistory(secID); flh.ShowDialog(); }
private void FilesButton_Click_1(object sender, EventArgs e) { FileHistory flh = new FileHistory(secID); flh.ShowDialog(); }