Exemplo n.º 1
0
 private void Add_Click(object sender, EventArgs e)
 {
     person.Add(new Person
     {
         CNIC = CNICTxtBox.Text,
         Name = NameTxtBox.Text
     });
     adapter.NotifyDataSetChanged();
 }
Exemplo n.º 2
0
        private async void ShowAllPerson()
        {
            var contacts = await myAPI.GetPeople();

            adapter = new PersonAdapter(this, contacts);

            adapter.NotifyDataSetChanged();
            recyclerSearch.SetAdapter(adapter);
        }