Ejemplo n.º 1
0
        /// <summary>
        /// Loads the invites from Windows Azure Mobile Service invites table
        /// </summary>
        private async void LoadInvitesAsync()
        {
            IEnumerable <Invite> invites = await invitesTable.Where(i => i.ToUserId == User.UserId).ToEnumerableAsync();

            Invites.Clear();
            Invites.AddRange(invites);

            IsPendingInvitesButtonVisible = ViewInvitesCommand.IsEnabled = Invites.Count > 0;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads the invites from Mobile Services invites table
        /// </summary>
        private async void LoadInvites()
        {
            IEnumerable <Invite> invites = await _invitesTable
                                           .Where(i => i.ToUserId == User.UserId)
                                           .ToEnumerableAsync();

            Invites.Clear();
            Invites.AddRange(invites);

            ViewInvitesCommand.IsEnabled = Invites.Count > 0;
        }