Exemple #1
0
 private async void Loader()
 {
     Cursor = Cursors.WaitCursor;
     try
     {
         paisModelsBindingSource.DataSource = await userModels.GetAll()
                                              .ToListAsync();
     }
     finally
     {
         Cursor = Cursors.Default;
     }
 }
Exemple #2
0
 private void Loader()
 {
     paisModelsBindingSource.DataSource = PaisModels.GetAll().ToList();
 }