private void ProcessQueryTransactionFamiliesResponse(List <FamilyDetail> _FD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_FD.Count > _intResultsPerPage - 1) { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); lblPageNumber.Visible = true; LnkNext.Visible = true; LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } else { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); LnkNext.Visible = false; //End of the list so disable the Next link LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false); //Enable previous on page 2 } if (_FD.Count > 0) { foreach (FamilyDetail f in _FD) { FamilyDetailVal SDV = new FamilyDetailVal(f); chklstTMSResults.Items.Add(SDV); } } }
private void ProcessQueryTransactionFamiliesResponse(List<FamilyDetail> _FD) { chklstTMSResults.Items.Clear(); //Check for the need of paging if (_FD.Count > _intResultsPerPage - 1) { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); lblPageNumber.Visible = true; LnkNext.Visible = true; LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } else { lblPageNumber.Text = @"Page : " + (_intCurrentPage + 1); LnkNext.Visible = false;//End of the list so disable the Next link LnkPrevious.Visible = (_intCurrentPage > 0 ? true : false);//Enable previous on page 2 } if (_FD.Count > 0) { foreach (FamilyDetail f in _FD) { FamilyDetailVal SDV = new FamilyDetailVal(f); chklstTMSResults.Items.Add(SDV); } } }