private void RadioButton_CheckedChanged(object sender, CheckedChangedEventArgs e) { if (e.Value == true) { RadioButtonProperty = ((sender as RadioButton).BindingContext as RadioButtonsModel).Property; } Filtrele(); }
// public List <Product> Order(ERadioButtonProperty OrderType) { if (Products == null) { return(Products); } switch ((int)OrderType) { case (int)ERadioButtonProperty.Artan: Products = Products.OrderBy(o => o.Cost).ToList(); break; case (int)ERadioButtonProperty.Azalan: Products = Products.OrderBy(o => o.Cost * (-1)).ToList(); break; default: break; } return(Products); }
public List <Product> Filtrele(string word, string minPrice, string maxPrice, ERadioButtonProperty OrderType, EMarka marka) { ResetList(); Products = Arama(word); Products = FiyataGöreFiltrele(minPrice, maxPrice); MarkaFiltreleme(marka); Products = Order(OrderType); return(Products); }