private async void DealsSortBy_click(DealsSortByModel data) { try { var IsAnyUserNameSelected = DealsSortByItems.Where(x => x.Radiobtnimg == Constants.RadiobtnSelectImg).ToList(); if (IsAnyUserNameSelected.Count > 0 && IsAnyUserNameSelected != null) { foreach (var item in IsAnyUserNameSelected) { item.Radiobtnimg = Constants.RadiobtnUnselectImg; item.NamelblStyle = (Style)App.Current.Resources["LatoRegularGrayLableStyle"]; item.SortByAscDescbtnimg = ""; } } if (data != null) { if (data.Radiobtnimg == Constants.RadiobtnUnselectImg) { data.Radiobtnimg = Constants.RadiobtnSelectImg; if (data.name == Constants.BorrowerlblText) { data.SortByAscDescbtnimg = Constants.NameAcendingImg; } else if (data.name == Constants.LastPostDatelblText) { data.SortByAscDescbtnimg = Constants.NumberAcendingImg; } data.NamelblStyle = (Style)App.Current.Resources["LatoBoldDarkBlueLableStyle"]; } else { data.Radiobtnimg = Constants.RadiobtnUnselectImg; if (data.name == Constants.BorrowerlblText) { data.SortByAscDescbtnimg = ""; } else if (data.name == Constants.LastPostDatelblText) { data.SortByAscDescbtnimg = ""; } data.NamelblStyle = (Style)App.Current.Resources["LatoRegularGrayLableStyle"]; } if (isFilterPopup) { App.SelectedTitle = data.name; } if (isSortingPopup) { selectedName = data.name; } } } catch (Exception ex) { await ClosePopup(); Debug.WriteLine(ex.Message); } }
private async void DealsSortBy_click(DealsSortByModel data) { try { var IsAnyUserNameSelected = DealsSortByItems.Where(x => x.Radiobtnimg == Constants.RadiobtnSelectImg).ToList(); if (IsAnyUserNameSelected.Count > 0 && IsAnyUserNameSelected != null) { foreach (var item in IsAnyUserNameSelected) { item.Radiobtnimg = Constants.RadiobtnUnselectImg; item.NamelblStyle = (Style)App.Current.Resources["LatoRegularGrayLableStyle"]; } } if (data != null) { if (data.Radiobtnimg == Constants.RadiobtnUnselectImg) { data.Radiobtnimg = Constants.RadiobtnSelectImg; data.NamelblStyle = (Style)App.Current.Resources["LatoBoldDarkBlueLableStyle"]; } else { data.Radiobtnimg = Constants.RadiobtnUnselectImg; data.NamelblStyle = (Style)App.Current.Resources["LatoRegularGrayLableStyle"]; } App.ApprovalSelectedTitle = data.name; } } catch (Exception ex) { await ClosePopup(); Debug.WriteLine(ex.Message); } }