private void Add_Click(object sender, EventArgs e) { person.Add(new Person { CNIC = CNICTxtBox.Text, Name = NameTxtBox.Text }); adapter.NotifyDataSetChanged(); }
private async void ShowAllPerson() { var contacts = await myAPI.GetPeople(); adapter = new PersonAdapter(this, contacts); adapter.NotifyDataSetChanged(); recyclerSearch.SetAdapter(adapter); }