Exemplo n.º 1
0
 public async Task ChooseDEaflutCountry()
 {
     try
     {
         if (Setting.SelectedCountry != string.Empty)
         {
             CurrentDefaultCountry = GlobalCountryCaseDataModel?.Where(x => x.country.ToUpper() == Setting.SelectedCountry.ToUpper()).FirstOrDefault();
         }
         else
         {
             await SettingTapped();
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemplo n.º 2
0
 public void SearchCountries(string SearchKey)
 {
     try
     {
         //SearchedList.Clear();
         var list = GlobalCountryCaseDataModel.Where(x => x.country.ToUpper().StartsWith(SearchKey.ToUpper())).ToList();
         if (list.Count > 0)
         {
             SearchedList           = list;
             IsNoResultLabelVisilbe = false;
         }
         else
         {
             SearchedList.Clear();
             NotifyChage("SearchedList");
             IsNoResultLabelVisilbe = true;
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.StackTrace);
     }
 }
Exemplo n.º 3
0
 public void RefreshCV()
 {
     TopInfectedCountries = GlobalCountryCaseDataModel.OrderByDescending(x => x.cases).Take(5).ToList();
 }