コード例 #1
0
        public async Task SearchPeople()
        {
            var items = await DataAcces.GetPeople();

            foreach (var item in items)
            {
                People.Add(item);
            }

            Console.WriteLine("Done conversion");
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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";
        }