コード例 #1
0
        async Task ExecuteLoadContactsCommand()
        {
            if (await _contactsStore.Initialize())
            {
                ReadMessagesCommand.Execute(null);
            }

            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                var contacts = await _contactsStore.GetContacts();

                ReloadContacts(contacts);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }
コード例 #2
0
 public IEnumerable <Contact> Contacts()
 {
     return(_contactsStore.GetContacts());
 }