Esempio n. 1
0
 private void OnPageCountChangedCommand()
 {
     if (EnterpriseInfoList.Any())
     {
         ShowEnterpriseInfoList = EnterpriseInfoList.Skip((PageCount - 1) * pageSize).Take(pageSize).ToObservableCollection <EnterpriseModel>();
     }
 }
Esempio n. 2
0
 private void OnPageSizeChangedCommand()
 {
     if (EnterpriseInfoList.Any())
     {
         TotalPageCount         = (int)Math.Ceiling((decimal)EnterpriseInfoList.Count() / pageSize);
         ShowEnterpriseInfoList = EnterpriseInfoList.Skip((PageCount - 1) * pageSize).Take(pageSize).ToObservableCollection <EnterpriseModel>();
     }
 }