public ListDetalhes_ViewCell( PainelDto Painel , Object paramContext , EnumPage paramPage ) : base(Color.White) { _enumPage = paramPage; if (_enumPage == EnumPage.DetalhesAlerta) { _viewModelUnidades = (ViewModelDetalhes)paramContext; } else if (_enumPage == EnumPage.DetalhesUnidade) { _viewModelUnidades = (ViewModelDetalhes)paramContext; ShowStatusRastreadorUnidadeRastreada = true; } else { _viewModelHistorico = (ViewModelHistorico)paramContext; } _painelDto = Painel; this._messageService = DependencyService.Get <IMessageService>(); this._navigationService = DependencyService.Get <INavigationService>(); this._util = DependencyService.Get <IUtilPlataform>(); }
private void GetDependency() { if (Configuracao.UseMockDataStore) { DependencyService.Register <MockDataStore>(); } else { DependencyService.Register <CloudDataStore>(); } DependencyService .Register <IMessageService, MessageService>(); DependencyService .Register <INavigationService, NavigationService>(); _util = DependencyService.Get <IUtilPlataform>(); }