protected override async void OnDisappearing() { base.OnDisappearing(); var action = await DisplayAlert("Settings", "Do you want to save settings?", "Yes", "Cancel"); if (action) { Preferences.Set("Store_Range", finalRange); StoresInRange SETstoreRanges = new StoresInRange(); SETstoreRanges.SetStoresInRange(); } }
// List<ProductsOnSpecial> ProductList; public Home() { InitializeComponent(); StoresInRange SETstoreRanges = new StoresInRange(); SETstoreRanges.SetStoresInRange(); //OnSpecialList(); //GetProductsOnSpecial(); BindingContext = new ProducListViewModel(); // RestAPI restAPI = new RestAPI(); // BindingContext = restAPI.GetProductsOnSpecials(); }