Example #1
0
 public DailySentencePageViewModel()
 {
     if (DictionaryService.CheckQueryAvailability() == WebStatus.InternetAvailable)
     {
         Cover_Visibility = Visibility.Collapsed;
         UpdateDailySentenceForToday();
         UpdateDailySentenceFor();
     }
     else if (DailySentenceService.IsDailySentenceAvailableUnderMeteredInternet & DictionaryService.CheckQueryAvailability() == WebStatus.MeteredInternet)
     {
         Cover_Visibility = Visibility.Collapsed;
         UpdateDailySentenceForToday();
         UpdateDailySentenceFor();
     }
     else
     {
         Cover_Visibility = Visibility.Visible;
     }
 }