public void ClearPage()
        {
            this.trgMessageTable.Rows.Clear();
            TableRow  tableRow  = new TableRow();
            TableCell tableCell = new TableCell();

            tableRow.Cells.Add(tableCell);
            Block[] blocks;
            if (this.IsMark)
            {
                blocks = this.utilService.MessageDecode("[{T:                                                无已标记记录}]");
            }
            else
            {
                blocks = this.utilService.MessageDecode("[{T:                                               无消息记录}]");
            }
            MsgRecordItem row = new MsgRecordItem(blocks);

            row.Background = Brushes.Transparent;
            row.Foreground = Brushes.Gray;
            this.trgMessageTable.Rows.Add(row);
            this.TotalRecord   = 0;
            this.TotalRecord   = 0;
            this.Showpage      = 0;
            this.tbkTotal.Text = "页/0页";
            this.textPage.Text = "0";
        }
        public void MessageCenterRecordGroup(Message[] messages, EntGroup group, int total)
        {
            bool color = true;

            this.TotalRecord = total;
            this.trgMessageTable.Rows.Clear();
            int i;

            for (i = messages.Length - 1; i >= 0; i--)
            {
                if (messages[i].MessageBlocks != null && messages[i].MessageBlocks.Length != 0)
                {
                    MsgRecordItem row = new MsgRecordItem(messages[i], group);
                    if (color)
                    {
                        row.Background = new SolidColorBrush(Color.FromRgb(241, 250, 255));
                        color          = false;
                    }
                    else
                    {
                        row.Background = new SolidColorBrush(Color.FromRgb(221, 253, 214));
                        color          = true;
                    }
                    WindowModel.Instance.MsgRecordPage.trgMessageTable.Rows.Add(row);
                }
            }
            this.SetRecordPageParam();
            this.InitTitleName("在" + group.Name + "的消息记录");
            string st = messages[i + 1].CreateTime.Substring(0, 10);

            this.DateSelect.Text = st;
        }
 public void ClearPage()
 {
     this.trgMessageTable.Rows.Clear();
     TableRow tableRow = new TableRow();
     TableCell tableCell = new TableCell();
     tableRow.Cells.Add(tableCell);
     Block[] blocks;
     if (this.IsMark)
     {
         blocks = this.utilService.MessageDecode("[{T:                                                无已标记记录}]");
     }
     else
     {
         blocks = this.utilService.MessageDecode("[{T:                                               无消息记录}]");
     }
     MsgRecordItem row = new MsgRecordItem(blocks);
     row.Background = Brushes.Transparent;
     row.Foreground = Brushes.Gray;
     this.trgMessageTable.Rows.Add(row);
     this.TotalRecord = 0;
     this.TotalRecord = 0;
     this.Showpage = 0;
     this.tbkTotal.Text = "页/0页";
     this.textPage.Text = "0";
 }
 public void MessageCenterRecordStaff(Message[] messages, Staff staff, int total)
 {
     bool color = true;
     this.TotalRecord = total;
     this.trgMessageTable.Rows.Clear();
     int i;
     for (i = messages.Length - 1; i >= 0; i--)
     {
         if (messages[i].MessageBlocks != null && messages[i].MessageBlocks.Length > 0)
         {
             MsgRecordItem row = new MsgRecordItem(messages[i], staff);
             if (color)
             {
                 row.Background = new SolidColorBrush(Color.FromRgb(241, 250, 255));
                 color = false;
             }
             else
             {
                 row.Background = new SolidColorBrush(Color.FromRgb(221, 253, 214));
                 color = true;
             }
             WindowModel.Instance.MsgRecordPage.trgMessageTable.Rows.Add(row);
         }
     }
     this.SetRecordPageParam();
     string st = messages[i + 1].CreateTime.Substring(0, 10);
     this.DateSelect.Text = st.ToString();
 }