Example #1
0
        private void CarregarCadastro(GerenciadorFormulario gerenciador)
        {
            _gerenciador = gerenciador;

            lblStatus.Text = _gerenciador.ObtemTipoCadastro();

            UserControl listagem = _gerenciador.CarregarListagem();

            listagem.Dock = DockStyle.Fill;

            panel.Controls.Clear();

            panel.Controls.Add(listagem);

            _gerenciador.AtualizarLista();

            toolStrip1.Enabled = true;

            MenuBotoes();
        }
Example #2
0
        private void CarregarCadastro(GerenciadorFormulario gerenciador)
        {
            _gerenciador = gerenciador;


            labelTipoCadastro.Text = _gerenciador.ObtemTipoCadastro();

            UserControl listagem = _gerenciador.CarregarListagem();

            listagem.Dock = DockStyle.Fill;

            panelControle.Controls.Clear();

            panelControle.Controls.Add(listagem);

            _gerenciador.AtualizarLista();

            tsbSalvar.Enabled  = true;
            tsbExcluir.Enabled = true;
            tsbEditar.Enabled  = true;
        }