public static void BuildGlobals(IHeartrateRepository heartrateRepository, ISleepRepository sleepRepository, IStepsRepository stepsRepository, Database database) { StepsRepository = stepsRepository; SleepRepository = sleepRepository; HeartrateRepository = heartrateRepository; Database = database; HeartratePageViewModel = new HeartRatePageViewModel(HeartrateRepository); SamplesService = new SamplesService(HeartrateRepository, StepsRepository, SleepRepository); StepsPageViewModel = new StepsPageViewModel(); SettingsPageViewModel = new SettingsPageViewModel(); SleepPageViewModel = new SleepPageViewModel(); DevicePageViewModel = new DevicePageViewModel(); HomePageViewModel = new HomePageViewModel(); LanguageDictionary = new Dictionary <string, string> { { "Nederlands", "nl-NL" }, { "English", "en-EN" }, { "Deutsch", "de-DE" } }; }
public HeartRatePageViewModel(IHeartrateRepository heartrateRepository) { _heartrateRepository = heartrateRepository; }
public SamplesService(IHeartrateRepository heartrateRepository, IStepsRepository stepsRepository, ISleepRepository sleepRepository) { _heartrateRepository = heartrateRepository; _stepsRepository = stepsRepository; _sleepRepository = sleepRepository; }