public void AtualizaDataSource() { using (var oDB = new CSetor.CSetorClient()) { setorBindingSource.DataSource = oDB.SelecionarTodosAsync().Result.ToList(); } }
private async void AtualizaDataSourceAsync() { using (var oDB = new CSetor.CSetorClient()) { var a = new List <CSetor.Setor>(); setorBindingSource.DataSource = await oDB.SelecionarTodosAsync(); } }