//Select all data private void BtnSelectAllOnClick(object sender, EventArgs e) { try { if (ListUtils.GenresList.Count > 0) { //Get all id foreach (var item in ListUtils.GenresList) { TotalIdGenresChecked += item.Id + ","; } UserDetails.FilterGenres = TotalIdGenresChecked.Remove(TotalIdGenresChecked.Length - 1, 1); TxtGenres.Text = GetString(Resource.String.Lbl_SelectAll); } if (ListUtils.PriceList.Count > 0) { //Get all id foreach (var item in ListUtils.PriceList) { TotalIdPriceChecked += item.Id + ","; } UserDetails.FilterPrice = TotalIdPriceChecked.Remove(TotalIdPriceChecked.Length - 1, 1); TxtPrice.Text = GetString(Resource.String.Lbl_SelectAll); } } catch (Exception exception) { Console.WriteLine(exception); } }
//Save and sent data and set new search private void ButtonApplyOnClick(object sender, EventArgs e) { try { UserDetails.FilterGenres = TotalIdGenresChecked.Remove(TotalIdGenresChecked.Length - 1, 1); UserDetails.FilterPrice = TotalIdPriceChecked.Remove(TotalIdPriceChecked.Length - 1, 1); Dismiss(); } catch (Exception exception) { Console.WriteLine(exception); } }