Пример #1
0
        private void searchUser()
        {
            ShowBusyIndicator("در حال دریافت اطلاعات...");
            userService.GetAllUserDescriptions(
                (res, exp) => appController.BeginInvokeOnDispatcher(() =>
            {
                HideBusyIndicator();
                if (exp == null)
                {
                    appController.BeginInvokeOnDispatcher(() =>
                    {
                        Users.TotalItemCount = res.TotalCount;
                        Users.PageIndex      = Math.Max(0, res.CurrentPage - 1);

                        Users.SourceCollection = res.Result.ToList();
                    });
                }
                else
                {
                    appController.HandleException(exp);
                }
            }), users.PageSize, users.PageIndex + 1, new Dictionary <string, string>(), UserCriteria);
        }