示例#1
0
 public PlaceSearchPageViewModel(INavigationService navigationService, IAnalyticsService analyticsService, IAppPropertiesService appPropertiesService)
     : base(navigationService, analyticsService, appPropertiesService)
 {
     _backButtonCommand         = ReactiveCommand.Create(BackButtonCommandAsync);
     _autoCompletePlacesCommand = ReactiveCommand.Create <object>(param => AutoCompletePlaces(param));
 }
示例#2
0
 public NearbyCinemasPageViewModel(INavigationService navigationService, IAnalyticsService analyticsService, IAppPropertiesService appPropertiesService, INearbyCinemasService nearbyCinemasService)
     : base(navigationService, analyticsService, appPropertiesService)
 {
     _nearbyCinemasService = nearbyCinemasService ?? Locator.Current.GetService <INearbyCinemasService>();
 }
        public MainPageViewModel(INavigationService navigationService, IAnalyticsService analyticsService, IAppPropertiesService appPropertiesService, IGpsService gpsService)
            : base(navigationService, analyticsService, appPropertiesService)
        {
            _gpsService = gpsService ?? DependencyService.Get <IGpsService>();

            //_toolbarItemCommand = ReactiveCommand.Create(LogoutToolbarCommand);
            _navigateToPlaceSearchbarCommand = ReactiveCommand.CreateFromTask(NavigateToPlaceSearchbarAsync);
            _navigateToMoviesCommand         = ReactiveCommand.CreateFromTask(NavigateToMoviesAsync);
            _mapTappedCommand         = ReactiveCommand.Create <bool>(param => MapTappedAsync(param));
            _closeMapSelectionCommand = ReactiveCommand.Create(CloseMapSelectionModeAsync);
            _okMapSelectionCommand    = ReactiveCommand.Create(OkMapSelectionAsync);
        }