Example #1
0
 public MainPageViewModel()
 {
     if (Windows.ApplicationModel.DesignMode.DesignModeEnabled) { /* TODO */ }
     else
     {
         _DataService = new Services.DataService();
         _ToastService = new Services.ToastService();
         _SettingService = new Services.SettingService();
     }
 }
Example #2
0
        public async static void TemporadaActual()
        {
            var temporadaActual = new TemporadaActual();

            Services.SettingService settingService = new Services.SettingService();
            temporadaActual = await settingService.GetTemporadaActual();

            if (temporadaActual.Temporada.Length > 0)
            {
                Preferences.Set("temporadaActual", temporadaActual.Temporada);
                Preferences.Set("etapa", temporadaActual.Etapa);
            }
        }