static void Main(string[] args)
        {
            var cliente = new Cliente();

            cliente.CPF = string.Empty;

            var cachorro = new Cachorro();

            cachorro.Andar();
            cachorro.Comer();
            cachorro.Latir();

            var gerencia = new GerenciamentoConta();

            gerencia.Sacar(new ContaPoupanca());
            gerencia.Sacar(new ContaCorrente());

            var programador = new Programador();

            programador.CalcularBonus();

            var gerente = new Gerente();

            gerente.CalcularBonus();

            var usbpc = new USBParaPc();

            usbpc.Conectar();

            var usbmac = new USBParaMac();

            usbmac.Conectar();

            Console.ReadKey();
        }
Example #2
0
        /// <summary>
        /// Obtem os dados do mapa de produção e constrói a tela
        /// </summary>
        private void DefineMapaProducao()
        {
            this.mapa = (List <ItemProducao>)GerenciamentoConta.CarregaMapaProducao(TipoArquivo.Nfe);

            if (this.mapa != null && this.mapa.Count > 0)
            {
                this.empresas = (List <Empresa>)GerenciamentoEmpresa.CarregaEmpresas();

                this.RptMapa.DataSource = this.mapa.OrderBy(m => m.IdEmpresa).ThenBy(m => m.TipoArquivo).Select(m => m.IdEmpresa).Distinct();
                this.RptMapa.DataBind();
            }
        }