Exemple #1
0
        public JogoConfiguracaoViewModel(
            INavigationService navigationService,
            IDialogService dialogService,
            ICampoService campoService,
            IModoJogoService modoJogoService,
            IMetricoService metricoService,
            IBuracosService buracoService,
            ITeeService teeService,
            ITeeDistanciaService teeDistanciaService)
            : base(navigationService, dialogService)
        {
            _campoService        = campoService;
            _modoJogoService     = modoJogoService;
            _metricoService      = metricoService;
            _buracoService       = buracoService;
            _teeService          = teeService;
            _teeDistanciaService = teeDistanciaService;

            ActivityIndicatorTool = new ActivityIndicatorTool(activityIndicatorCor: "#11990f", mensagemAMostrar: "Creating the game...", backgroundCorVisivel: "#CC000000", backgroundCorEscondido: "#00000000");

            Jogadores = new ObservableCollection <JogadorWrapperViewModel>();

            InicializarComunicacaoMediadorMensagens();

            //Preencher Pickers.
            Task.Run(async() => await InicializarDados());
        }
Exemple #2
0
        public CampoInformacoesViewModel(INavigationService navigationService
                                         , IDialogService dialogService,
                                         ICampoService campoService)
            : base(navigationService, dialogService)
        {
            _campoService = campoService;

            ActivityIndicatorTool = new ActivityIndicatorTool(activityIndicatorCor: "#11990f", mensagemAMostrar: "Obtaining Courses...", backgroundCorVisivel: "#CC000000", backgroundCorEscondido: "#00000000");

            Task.Run(async() => await ObterCamposExistentes());
        }
Exemple #3
0
        protected override void LimparMemoria()
        {
            _camposExistentes = null;

            _campoService = null;

            _verCampoAnteriorCommand = null;
            _verProximoCampoCommand  = null;
            _fecharJanelaCommand     = null;

            base.LimparMemoria();
        }
Exemple #4
0
        protected override void LimparMemoria()
        {
            _campoService        = null;
            _modoJogoService     = null;
            _metricoService      = null;
            _buracoService       = null;
            _teeDistanciaService = null;
            _teeService          = null;

            CamposExistentes    = null;
            CampoSelecionado    = null;
            ModosJogoExistentes = null;
            ModoJogoSelecionado = null;
            MetricosExistentes  = null;
            MetricoSelecionado  = null;
            TeesExistentes      = null;
            TeeSelecionado      = null;
            Jogadores           = null;

            ComecarJogoCommand  = null;
            CancelarJogoCommand = null;

            base.LimparMemoria();
        }
Exemple #5
0
 public CampoAppService(ICampoService campoService)
     : base(campoService)
 {
     _campoService = campoService;
 }
		public CampoController(ICampoService<Campo> service)
		{
			_service = service;
		}
Exemple #7
0
 public CampoController(ICampoService service)
 {
     _service = service;
 }
 public CampoControllerTest()
 {
     _service    = new CampoServiceFake();
     _controller = new CampoController(_service);
 }