public NotebookPage() { InitializeComponent(); Ürünler = new ÜrünModel(this); ProductFilter = new ProductFilter(Ürünler, this); ÖneÇıkanÜrünlerFLV.FlowItemsSource = Ürünler.GetAllItemsNonCallApi(); AdetLabel.Text = ÖneÇıkanÜrünlerFLV.FlowItemsSource.Count.ToString(); List <RadioButtonsModel> radioButtonsModels = new List <RadioButtonsModel>() { new RadioButtonsModel() { Property = ERadioButtonProperty.Azalan, TextString = "Azalan Fiyata Göre Sırala" }, new RadioButtonsModel() { Property = ERadioButtonProperty.Artan, TextString = "Artan Fiyata Göre Sırala" } }; Azalan.BindingContext = radioButtonsModels[0]; Artan.BindingContext = radioButtonsModels[1]; Marka = EMarka.TÜMÜ; List <string> MarkaNames = Enum.GetNames(typeof(EMarka)).ToList(); foreach (var item in MarkaNames) { picker.Items.Add(item); } picker.SelectedIndex = (int)EMarka.TÜMÜ - 1; picker.ItemsSource = Enum.GetNames(typeof(EMarka)).ToList(); }
public List <Product> ResetList() { return(Products = ÜrünModel.GetAllItemsNonCallApi()); }