Esempio n. 1
0
 public override Servico <Disciplina> ObterServico()
 {
     if (_servico == null)
     {
         _servico = new DisciplinaService(MateriaGerenciadorFormulario.ObterInstancia().ObterServico() as MateriaService);
     }
     return(_servico);
 }
 private void materiaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     getCadastro(MateriaGerenciadorFormulario.ObterInstancia());
 }
 public override CadastroBasicoDialog <Teste> ObterDialogoCadastro()
 {
     return(new FormCadastroTeste(ObterServico() as TesteService, DisciplinaGerenciadorFormulario.ObterInstancia().ObterServico() as DisciplinaService, MateriaGerenciadorFormulario.ObterInstancia().ObterServico() as MateriaService, SerieGerenciadorFormulario.ObterInstancia().ObterServico() as SerieService));
 }
 public override CadastroBasicoDialog <Questao> ObterDialogoCadastro()
 {
     return(new FormCadastroQuestao(ObterServico() as QuestaoService, DisciplinaGerenciadorFormulario.ObterInstancia().ObterServico() as DisciplinaService, MateriaGerenciadorFormulario.ObterInstancia().ObterServico() as MateriaService));
 }