public ViewModelBase()
        {
            _dataRepository = new ApplicationDataRepository();

            _settings        = new ApplicationSettingServiceSingleton(_dataRepository);
            _locationService = new LocationServiceSingleton(_settings);
            CoreClient       = new CoreClient(_settings, new ApplicationStorageService(_dataRepository));
        }
Esempio n. 2
0
        public BaseTabbedViewModel(Page currentPage) : base(currentPage)
        {
            Tab1Click();
            SetPdf();
            Tab1Command = new Command(Tab1Click);
            Tab2Command = new Command(Tab2Click);


            _dataRepository = new ApplicationDataRepository();

            _settings        = new ApplicationSettingServiceSingleton(_dataRepository);
            _locationService = new LocationServiceSingleton(_settings);
            CoreClient       = new CoreClient(_settings, new ApplicationStorageService(_dataRepository));
        }