Ejemplo n.º 1
0
        private void BindData()
        {
            DbQueryResult memberSendedMessages = CommentBrowser.GetMemberSendedMessages(new MessageBoxQuery
            {
                PageIndex = this.pager.PageIndex,
                PageSize  = this.pager.PageSize,
                Sernder   = HiContext.Current.User.Username
            });

            this.CmessagesList.DataSource = memberSendedMessages.Data;
            this.CmessagesList.DataBind();
            this.pager.TotalRecords = memberSendedMessages.TotalRecords;
        }
Ejemplo n.º 2
0
        private void BindData()
        {
            MessageBoxQuery messageBoxQuery = new MessageBoxQuery();

            messageBoxQuery.PageIndex = this.pager.PageIndex;
            messageBoxQuery.PageSize  = this.pager.PageSize;
            messageBoxQuery.Sernder   = HiContext.Current.User.UserName;
            DbQueryResult memberSendedMessages = CommentBrowser.GetMemberSendedMessages(messageBoxQuery);

            this.CmessagesList.DataSource = memberSendedMessages.Data;
            this.CmessagesList.DataBind();
            this.pager.TotalRecords = memberSendedMessages.TotalRecords;
        }