public async void SortBorrowerUpCommandExecute() { await ClosePopup(); var tempRecords = ApprovalItems.OrderBy(c => c.partyname_10).ToList(); ApprovalItems.Clear(); foreach (var item in tempRecords) { ApprovalItems.Add(item); } var approvalBorrowerUp = ApprovalItems.FirstOrDefault(); MessagingCenter.Send <object, ApprovalMainModel>(this, "ApprovalSortBorrowerUp", approvalBorrowerUp); }
public async void SortDateDownCommandExecute() { await ClosePopup(); var tempRecords = ApprovalItems.OrderByDescending(c => c.stageentrydatetime_10).ToList(); ApprovalItems.Clear(); foreach (var item in tempRecords) { ApprovalItems.Add(item); } var approvalDateDown = ApprovalItems.FirstOrDefault(); MessagingCenter.Send <object, ApprovalMainModel>(this, "ApprovalSortDateDown", approvalDateDown); }
private async void clearSortingAsync() { await ClosePopup(); var tempRecords = tempContainerList; ApprovalItems.Clear(); foreach (var item in tempRecords) { ApprovalItems.Add(item); } var ClearApprovalSort = ApprovalItems.FirstOrDefault(); MessagingCenter.Send <object, ApprovalMainModel>(this, "ClearApprovalSort", ClearApprovalSort); }