Пример #1
0
        static void Main(string[] args)
        {
            // Padrão - Singleton
            var empresa   = EmpresaClass.GetInstance();
            var parametro = ParametroClass.GetInstance();

            // Padrão - Factory Method
            var gerarContato = new GerarContato();
            var contato      = gerarContato.IniciarContato("telefone");

            // Padrão - Facade
            var carregarFacade = new CarregamentoClass();
        }
Пример #2
0
        private static void CarregarSistemas(Usuario atendente)
        {
            var carregamento = new CarregamentoClass(atendente.NomePerfil);

            carregamento.CarregarSistemas();
        }