private async void BtnMenu_Clicked(object sender, EventArgs e) { if (IRES_Global.GlobalInfo.Order == null) { HasAlert?.Invoke("Bạn chưa chọn bàn!", null); return; } BackgroundWorker wk = new BackgroundWorker(); wk.DoWork += (s, z) => { z.Result = new MenuFood.MenuPage(); }; MultiContentPages.Instance.ClearAll(); await Navigation.PushModalAsync(MultiContentPages.Instance as Page); MultiContentPages.Instance.PushPage(wk); }
private async void BtnCart_Clicked(object sender, EventArgs e) { if (IRES_Global.GlobalInfo.ListOrders.Count == 0) { HasAlert?.Invoke("Bạn chưa chọn món!", null); return; } //SingleContentPage.Instance.Content = new CartPage.MainCartPage(); //await Navigation.PushModalAsync(SingleContentPage.Instance); BackgroundWorker wk = new BackgroundWorker(); wk.DoWork += (s, z) => { z.Result = new CartPage.MainCartPage(); }; MultiContentPages.Instance.ClearAll(); await Navigation.PushModalAsync(MultiContentPages.Instance as Page); MultiContentPages.Instance.PushPage(wk); //LoadingPageWithContent.Instance.PushPage(wk); }