private void btnNovo_Click(object sender, EventArgs e) { this.comando = "inserir"; frmExamesParametrosManter frmExamesParametrosManter = new frmExamesParametrosManter(this.comando, 0); frmExamesParametrosManter.ShowDialog(); AtualizarTabela(); }
private void btnEditar_Click(object sender, EventArgs e) { int idExameParametro; this.comando = "editar"; try { idExameParametro = Convert.ToInt32(dgvExamesParametros.CurrentRow.Cells[0].Value); frmExamesParametrosManter frmExamesParametrosManter = new frmExamesParametrosManter(this.comando, idExameParametro); frmExamesParametrosManter.Show(); AtualizarTabela(); } catch (Exception) { MessageBox.Show("Selecione um item da Tabela"); } }