private async void Loader() { Cursor = Cursors.WaitCursor; try { instituicaoModelsBindingSource.DataSource = await userModels.GetAll() .ToListAsync(); } finally { Cursor = Cursors.Default; } }
private void Loader() { instituicaoModelsBindingSource.DataSource = instituicaoModels.GetAll().ToList(); turmaModelsBindingSource.DataSource = turmaModels.GetAll().ToList(); }