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();
            }
        }
예제 #2
0
        // List<ProductsOnSpecial> ProductList;
        public Home()
        {
            InitializeComponent();
            StoresInRange SETstoreRanges = new StoresInRange();

            SETstoreRanges.SetStoresInRange();
            //OnSpecialList();
            //GetProductsOnSpecial();
            BindingContext = new ProducListViewModel();

            // RestAPI restAPI = new RestAPI();

            // BindingContext = restAPI.GetProductsOnSpecials();
        }