예제 #1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            frmCategoriaCadastro categoriaCadastro = new frmCategoriaCadastro();

            categoriaCadastro.Operacao = clnFuncoesGerais.Operacao.Inclusao;
            categoriaCadastro.ShowDialog();
            CarregaGrid();
        }
예제 #2
0
        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();
        }