private void btnNovo_Click(object sender, EventArgs e) { frmCategoriaCadastro categoriaCadastro = new frmCategoriaCadastro(); categoriaCadastro.Operacao = clnFuncoesGerais.Operacao.Inclusao; categoriaCadastro.ShowDialog(); CarregaGrid(); }
private void btnAlterar_Click(object sender, EventArgs e) { frmCategoriaCadastro categoriaCadastro = new frmCategoriaCadastro(); categoriaCadastro.Operacao = clnFuncoesGerais.Operacao.Alteracao; categoriaCadastro.Codigo = (int)dgdGrid.CurrentRow.Cells[0].Value; categoriaCadastro.ShowDialog(); CarregaGrid(); }