示例#1
0
        /// <summary>
        /// Initialisiert die View
        /// </summary>
        public async void LoadData()
        {
            try
            {
                AreUsersLoading = true;

                IEnumerable <IUserModel> users = UserFactory
                                                 .Convert(await ServiceClient <IUserService> .ExecuteAsync(d => d.FindUsersAsync()))
                                                 .ToList();

                Users = new ListCollectionView(users.ToList());
            }
            catch (Exception ex)
            {
                NotificationService.ShowDialog(ex.Message, Translation.Translate("Error"));
            }
            finally
            {
                AreUsersLoading = false;
            }
        }