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); }
private void serieToolStripMenuItem_Click(object sender, EventArgs e) { _gerente = new SerieGerenciadorFormulario(); CarregarCadastro(_gerente); }
private void disciplinaMenuItem_Click(object sender, EventArgs e) { _gerente = new DisciplinaGerenciadorFormulario(); CarregarCadastro(_gerente); }