private void dgvRegistros_DoubleClick(object sender, EventArgs e) { CentroCusto _frm = new CentroCusto(dgvRegistros.CurrentRow.Cells["id"].Value.ToString()); _frm.ShowDialog(); ListRegistros(); }
private void btnNovoCadastro_Click(object sender, EventArgs e) { CentroCusto frm = new CentroCusto("novo"); frm.ShowDialog(); ListRegistros(); }