async void LoadContacts() { if (!IsBusy) { IsBusy = true; await Task.Delay(2000); var collectionOfContacts = ContactServices.loadContacts(); foreach (var item in collectionOfContacts.contacts) { Contacts.Add(item); } IsBusy = false; } }
async void LoadContacts() { if (!IsBusy) { IsBusy = true; await Task.Delay(2000); var collectionOfContacts = ContactServices.loadContacts(); foreach (var item in collectionOfContacts.contacts) { Contacts.Add(item); } IsBusy = false; } }