public MainViewModel(IDonorsChooseApiService donorsChooseApiService, ILocalDataService localDataService, INavigationService navigationService) { _donorsChooseApiService = donorsChooseApiService; _localDataService = localDataService; _navigationService = navigationService; }
public MainViewModel(ILocalDataService localDataService, INavigationService navigationService) { _localDataService = localDataService; _navigationService = navigationService; _recipeRepository = new RecipeRepository(); }
public WebDataService() { client = new HttpClient(); dataService = DependencyService.Get <ILocalDataService>(); userName = Preferences.Get(Constants.UserIdPreference, "Matt"); }
public FollowService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger) { _messenger = messenger; _localDbService = localDbService; _fileService = fileService; ReadFollows(); }
public MainViewModel(ILocalDataService localDataService, IStorageService storageService, INavigationService navigationService, ILiveTileService liveTileService) { this.LocalDataService = localDataService; this.StorageService = storageService; this.NavigationService = navigationService; this.LiveTileService = liveTileService; }
public MainViewModel(ILocalDataService localDataService, IStorageService storageService, INavigationService navigationService, ILiveTileServiceWP8 liveTileService) { _localDataService = localDataService; _storageService = storageService; _navigationService = navigationService; _liveTileService = liveTileService; }
public PersonViewModel() { this.socialService = GetService<ISocialService>(); this.localDataService = GetService<ILocalDataService>(); this.shareProfileCommand = new RelayCommand(ShareProfile, null); this.followPersonCommand = new RelayCommand(FollowPerson, null); this.unfollowPersonCommand = new RelayCommand(UnfollowPerson, null); }
public MockFollowService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger) : base(fileService, localDbService, messenger) { AddFollows("701", new[] { "7" }); AddFollows("702", new[] { "7" }); AddFollows("705", new[] { "7" }); AddFollows("706", new[] { "7" }); AddFollows("707", new[] { "7" }); AddFollows("708", new[] { "7" }); }
public WorkoutHistoryPageViewModel() { GetWorkoutHistoryCommand = new Command(async() => await ExecuteGetWorkoutHistoryCommand()); StartNewWorkoutCommand = new Command(async() => await ExecuteStartWorkoutCommand()); SignoutCommand = new Command(() => ExecuteSignoutCommand()); TrainingSessions = new ObservableCollection <TrainingSession>(); localSvc = DependencyService.Get <ILocalDataService>(); cloudSvc = DependencyService.Get <IWebDataService>(); }
public AlertsViewModel() { _messenger = Mvx.Resolve<IMvxMessenger>(); _service = Mvx.Resolve<IAlertService>(); _fileService = Mvx.Resolve<IMvxFileStore>(); _localDbService = Mvx.Resolve<ILocalDataService>(); // NetworkConnectionHelper = Mvx.Resolve<IConnectivity> (); _messenger.Subscribe<FollowsChanged>( async x => await ExecuteRefreshCommand(), MvxReference.Strong); }
public AddRecipePageViewModel(INavigationService navigationService, IRecipeService recipeService, IPageDialogService pageDialog, ILocalDataService localDataService) : base(navigationService) { Title = "Add Recipe"; _navigationService = navigationService; _recipeService = recipeService; _localDataService = localDataService; _pageDialog = pageDialog; SubmitRecipe = new Command(submitrecipe_execute, submitRecipe_canexecute); AddIngredient = new Command(addIngredient_execute, addIngredient_canexecute); recipe = new Recipe(); db = new SqliteDataService(); ListOfIngredients = new ObservableCollection <Ingredient>(); }
public BaseViewModel() { //From IOC container in Xamarin Forms. DataService = DependencyService.Get <IDataService>(); LocalDataService = DependencyService.Get <ILocalDataService>(); }
public FilesController(ILocalDataService svc) { _LocalDataSvc = svc; }
public NavigationService(IUserService userService, ILocalDataService localDataService) { _userService = userService; _localDataService = localDataService; }
public DisplaySingleRecipeViewModel(INavigationService navigationService, IRecipeService recipeService, IPageDialogService pageDialog, ILocalDataService localDataService) : base(navigationService) { recipe = new Recipe(); _pageDialog = pageDialog; _navigationService = navigationService; DeleteRecipe = new Command(deleterecipe_execute); db = new SqliteDataService(); }
public WebService1(ILocalDataService localDataService) { _localDataService = localDataService; }
public CredentialListPageViewModel(INavigationService navigationService, ICredentialService credentialService, ILocalDataService localDataService) : base(navigationService) { Title = "Saved Credentials"; this.localDataService = localDataService ?? throw new ArgumentNullException(nameof(localDataService)); this.navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); this.credentialService = credentialService ?? throw new ArgumentNullException(nameof(credentialService)); localDataService.Initialize(); }
public ProjectDetailsViewModel(ILocalDataService localDataService, INavigationService navigationService) { _localDataService = localDataService; _navigationService = navigationService; }
public MockAlertService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger) : base() { //AddAlerts("701", new[] { "7" }); }
public SearchViewModel(ILocalDataService localDbService) { _localDbService = localDbService; this.SearchResults = _localDbService.GetStations(""); }
public MockWebService(ILocalDataService localDbService) { _localDbService = localDbService; }
public StarSystemService(ILocalDataService localDataService, IWebDataService webDataService) { localService = localDataService; webService = webDataService; }