Example #1
0
 private void OnReceivePrepareGuildList(ListView <PrepareGuildInfo> guildList, uint totalCnt, byte pageId, byte thisCnt)
 {
     if (pageId == 0)
     {
         this.m_Model.ClearPrepareGuildInfoList();
     }
     this.m_Model.AddPrepareGuildInfoList(guildList);
     if (CGuildHelper.IsLastPage((int)pageId, totalCnt, 10))
     {
         this.m_View.RefreshPrepareGuildPanel(false, pageId, true);
     }
     else
     {
         this.m_View.RefreshPrepareGuildPanel(false, pageId, false);
     }
 }
 public void OnReceiveApplyListSuccess(List <stApplicantInfo> applicantList, uint totalCnt, byte pageId, byte thisCnt)
 {
     this.m_Model.AddApplicants(applicantList);
     if (CGuildHelper.IsLastPage(pageId, totalCnt, 10))
     {
         this.m_Model.IsApplyAndRecommendListLastPage = true;
         this.m_View.RefreshApplyListPanel();
     }
     else
     {
         if (thisCnt == 10)
         {
             this.m_Model.RequestApplyListPageId = pageId + 1;
         }
         else
         {
             this.m_Model.RequestApplyListPageId = pageId;
         }
         this.m_Model.IsApplyAndRecommendListLastPage = false;
         this.m_View.RefreshApplyListPanel();
     }
 }
 public void OnReceiveRecommendListSuccess(List <stRecommendInfo> recommendList, uint totalCnt, byte pageId, byte thisCnt)
 {
     this.m_Model.AddRecommendInfoList(recommendList);
     this.m_Model.IsApplyAndRecommendListLastPage = false;
     if (CGuildHelper.IsLastPage(pageId, totalCnt, 10))
     {
         this.m_Model.IsRequestApplyList     = true;
         this.m_Model.RequestApplyListPageId = 0;
         Singleton <EventRouter> .GetInstance().BroadCastEvent("Request_Apply_List");
     }
     else
     {
         if (thisCnt == 10)
         {
             this.m_Model.RequestRecommendListPageId = pageId + 1;
         }
         else
         {
             this.m_Model.RequestRecommendListPageId = pageId;
         }
         this.m_View.RefreshApplyListPanel();
     }
 }