示例#1
0
 static Providers()
 {
     for (int count = 0; count < 5000; count++)
     {
         ProvidersList.Add(10000000 + (count * 500));
     }
 }
    public async Task RefresProvidersAsync()
    {

      var result = await new ProviderService().GetProvidersAsync();
      var data = result.ToList();
      ProvidersList.Clear();
      foreach (var item in data)
      {
        ProvidersList.Add(item);
      }
    }
示例#3
0
        public async Task RefresProvidersAsync()
        {
            var result = await new ProviderService().GetProvidersAsync();
            var data   = result.ToList();

            data.Insert(0, new Provider()
            {
                ProviderId = -1, Name = "Add New Provider"
            });
            ProvidersList.Clear();
            foreach (var item in data)
            {
                ProvidersList.Add(item);
            }
        }