private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { int id = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value); MonumentInfo form = new MonumentInfo(id); form.Show(); }
private void MaterialFlatButton1_Click(object sender, EventArgs e) { int id = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value); MonumentInfo form = new MonumentInfo(id); form.Show(); }