public MainPageViewModel() { if (Windows.ApplicationModel.DesignMode.DesignModeEnabled) { /* TODO */ } else { _DataService = new Services.DataService(); _ToastService = new Services.ToastService(); _SettingService = new Services.SettingService(); } }
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); } }