public PaisesMoverIndicador(Alteracoes alt, Cor cor) : base(alt, cor)
        {
            var builder = new PaisEscolhido();

            builder.setTodos();
            this.pais = builder.GetPaisSeleccionado().ListPaisSel();
        }
Пример #2
0
        public void colocarIndicadores()
        {
            var builderPortugal = new PaisEscolhido();
            var builderItalia   = new PaisEscolhido();
            var builderChina    = new PaisEscolhido();
            var builderEua      = new PaisEscolhido();
            var builderEspanha  = new PaisEscolhido();

            colocarNovoInd('1', 2, new PaisesMoverIndicador(alt, Cor.Branco));
            builderPortugal.SetPortugal();
            colocarNovoInd('2', 2, new PaisesMoverIndicador(builderPortugal.GetPaisSeleccionado().ListPaisSel(), alt, Cor.Vermelho));
            builderItalia.setItalia();
            colocarNovoInd('3', 2, new PaisesMoverIndicador(builderItalia.GetPaisSeleccionado().ListPaisSel(), alt, Cor.Verde));
            builderChina.SetChina();
            colocarNovoInd('4', 2, new PaisesMoverIndicador(builderChina.GetPaisSeleccionado().ListPaisSel(), alt, Cor.Laranja));
            builderEua.SetEua();
            colocarNovoInd('5', 2, new PaisesMoverIndicador(builderEua.GetPaisSeleccionado().ListPaisSel(), alt, Cor.Azul));
            builderEspanha.SetEspanha();
            colocarNovoInd('6', 2, new PaisesMoverIndicador(builderEspanha.GetPaisSeleccionado().ListPaisSel(), alt, Cor.Amarelo));
        }