private void dgvDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { Int64 numero = Convert.ToInt64(dgvDados.SelectedRows[0].Cells[0].Value); Model.Console c = tabelaConsoles[numero]; frmCadConsole form = new frmCadConsole(); form.Tag = c; form.ShowDialog(); CarregarGridDoBD(""); } catch (Exception ex) { MessageBox.Show("ERRO AO SELECIONAR CADASTRO: " + ex.Message); } }
private void itemBarraConsoleCadastro_Click(object sender, EventArgs e) { frmCadConsole form = new frmCadConsole(); form.ShowDialog(); }