Esempio n. 1
0
        /// <summary>
        /// Updates binding source.
        /// </summary>
        public async void UpdateSource()
        {
            var repo = new HttpUsersRepository();

            foreach (var groupDetail in currGroup.GroupDetails)
            {
                var user = await repo.GetOne(groupDetail.user_id);
                usersBindingSource.Add(user);
            }
            
        }
Esempio n. 2
0
 /// <summary>
 /// Funciton updates currently logged user to have the same data as in databse.
 /// </summary>
 /// <returns></returns>
 public static async Task UpdateCurrentUser()
 {
     HttpUsersRepository repo = new HttpUsersRepository();
     CurrentUser = await repo.GetOne(CurrentUser.id);
 }