async public void ChangePricing() { if (pickPlot.SelectedIndex > -1) { Application.Current.Properties["Counter"] = pickPlot.SelectedIndex; await PopupNavigation.Instance.PushAsync(ChangePrice.GetInstance()); } }
private async Task Change_Clicked(EventArgs e) { string name = PriceList.SelectedItem.ToString(); for (int x = 0; x < PriceArray.Length; x++) { if (PriceArray.Cast <string>().ToList().ElementAt(x) == name) { select2 = x; } } MessagingCenter.Subscribe <ChangePrice>(this, "Change", async(sender) => { PopList(pickPrice.SelectedIndex); Pricetitle.Text = AppResource.ResourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true, true).GetString("Pricings") + " :" + AppResource.ResourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true, true).GetString("Saved"); SaveAll.GetInstance().SavePricing(); await Task.Delay(5000); Pricetitle.Text = AppResource.ResourceManager.GetResourceSet(Thread.CurrentThread.CurrentCulture, true, true).GetString("Pricings"); }); Application.Current.Properties["Priceholder"] = (pickPrice.SelectedIndex, select2); await PopupNavigation.Instance.PushAsync(ChangePrice.GetInstance()); }