示例#1
0
 /// <summary>
 /// 填充日志数据
 /// </summary>
 private void RenderLogList()
 {
     if (GetTransform() == null)
     {
         return;
     }
     if (OwnerView.State.GetPageIndex() == 1)
     {
         LogDataVO[] m_logDataVOs = m_LogProxy.GetLogs().Values.ToArray();
         int         totalCount   = m_CfgEternityProxy.GetGamingConfig(1).Value.Log.Value.MaxNum;
         OwnerView.State.SetPageLabel(1, string.Format("{0}/{1}", m_logDataVOs.Length, totalCount));
         Array.Sort(m_logDataVOs, (LogDataVO x, LogDataVO y) =>
         {
             if (x.ReveiveTime.CompareTo(y.ReveiveTime) != 0)
             {
                 return(x.ReveiveTime.CompareTo(y.ReveiveTime) * -1);
             }
             else
             {
                 return(0);
             }
         });
         ClearData();
         AddDatas(null, m_logDataVOs);
     }
 }