private void dgvProcesso_CellContentClick(object sender, DataGridViewCellEventArgs e) { try { Int64 idProcesso = Convert.ToInt64(dgvProcesso.SelectedRows[0].Cells[0].Value); Dictionary <Int64, Processo> mapaProcesso = (Dictionary <Int64, Processo>); Processo p = mapaProcesso[idProcesso]; frmInserirProcesso form = new frmInserirProcesso(); form.ShowDialog(); } catch (Exception ex) { MessageBox.Show("ERRO AO SELECIONAR LINHA: " + ex.Message); } }
private void btnInserir_Click(object sender, EventArgs e) { frmInserirProcesso p = new frmInserirProcesso(); p.ShowDialog(); }