public async Task SearchPeople() { var items = await DataAcces.GetPeople(); foreach (var item in items) { People.Add(item); } Console.WriteLine("Done conversion"); }
private async Task Search_Action() { people = await DataAcces.GetPeople() as List <PersonModel>; //people = db.GetPeople(); foreach (PersonModel person in people) { PersonView personView = new PersonView(parent, person); //peopleView.Add(personView); } }
public ExpenseItHome() { InitializeComponent(); //Populez lista de persone cu datele din baza de date. people = DataAcces.GetPeople(); //Setez sursa de data pentru peopleListBox peopleListBox.ItemsSource = people; //Definesc membrul afisast (first_name,last_name,id ... ) peopleListBox.DisplayMemberPath = "last_name"; }