private void dgvFomacoes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { using (var bo = new FormacaoTaticaBO()) { var id = dgvFomacoes.Rows[e.RowIndex].Cells["Id"].Value.ToString().ToInt(); var formacao = bo.Get(id); var form = new CadastroFormacoesForm(this, formacao); form.Show(); } } catch (Exception) { throw; } }
private void adicionarToolStripMenuItem_Click(object sender, EventArgs e) { var form = new CadastroFormacoesForm(this); form.Show(); }