Exemplo n.º 1
0
        public async void CargarContactos()
        {
            this.Contactos = await _cloudService.GetAll();

            if (this.Contactos == null || this.Contactos.Count == 0)
            {
                LlenarContactos();
                this.Contactos = await _cloudService.GetAll();
            }
        }
Exemplo n.º 2
0
        public async void LoadContacts()
        {
            this.Contacts = await _cloudService.GetAll();

            // For demo purposes, if there are no contacts returned then put some there and call again
            if (this.Contacts == null || this.Contacts.Count == 0)
            {
                PopulateContacts();
                this.Contacts = await _cloudService.GetAll();
            }
        }