Ejemplo n.º 1
0
        private void CarregarCadastro(GerenciadorFormulario gerenciador)
        {
            _gerente = gerenciador;
            AtivaBotoes();
            LabelDeControle.Text = _gerente.ObtemTipoCadastro();

            UserControl _userControl = _gerente.ObterTipoUserControl();

            btnCadastrar.Text = _gerente.btnCad;
            btnEditar.Text    = _gerente.btnEdit;
            btnExcluir.Text   = _gerente.btnDel;

            _userControl.Dock = DockStyle.Fill;

            panel.Controls.Clear();

            panel.Controls.Add(_userControl);
        }
Ejemplo n.º 2
0
 private void serieToolStripMenuItem_Click(object sender, EventArgs e)
 {
     _gerente = new SerieGerenciadorFormulario();
     CarregarCadastro(_gerente);
 }
Ejemplo n.º 3
0
 private void disciplinaMenuItem_Click(object sender, EventArgs e)
 {
     _gerente = new DisciplinaGerenciadorFormulario();
     CarregarCadastro(_gerente);
 }