Esempio n. 1
0
 public Organizer(ViewModel.MainViewModel mainViewModel)
 {
     strg                = new StorageService();
     AppSettings         = CrossSettings.Current;
     nmzApi              = new NamazApiService();
     notificationService = DependencyService.Get <ILocalNotificationService>();
     this.mainViewModel  = mainViewModel;
 }
Esempio n. 2
0
        public SettingsViewModel(MainViewModel mainViewModel)
        {
            Countries          = new ObservableCollection <Ulke>();
            Cities             = new ObservableCollection <Sehir>();
            Towns              = new ObservableCollection <Ilce>();
            namazApi           = new NamazApiService();
            Save               = new Command(SaveSettings);
            this.mainViewModel = mainViewModel;

            var settings = LocalSettings.GetCurrent();

            CurrentLocation = GetLocation(settings);
            AlertUser       = settings.AlertUser;
            Interval        = settings.Interval;
            LoadCurrents(settings.AbsolutePlace);
        }