Пример #1
0
        private void RequestUsersData()
        {
            try
            {
                //    gcUser.DataSource = null;

                slueUsers.Properties.DataSource = _bll.GetUsers(new UsersQM()
                {
                    Take = 1000000,
                    Skip = 0
                }).UsersList;
            }
            catch (Exception ex)
            {
                //  LoadingUtil.HideImageLoading();
                XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
            }
        }
Пример #2
0
        private void RequestGridData()
        {
            try
            {
                gcUser.DataSource = null;


                var result = _bll.GetUsers(new UsersQM()
                {
                    Take    = this.pageNavigator.Take,
                    Skip    = this.pageNavigator.Skip,
                    Account = this.teQueryAccount.Text.Trim()
                });
                gcUser.DataSource        = result.UsersList;
                this.pageNavigator.Total = result.Count;
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
            }
        }