public void OnDataSent(object source, EventArgs e) { GusBurger.AllZero(_gb); Sandwich.AllZero(_sand); SoupPage.AllZero(_sp); BikBurgerPage.AllZero(_bp); }
protected override void OnCurrentPageChanged() { // DisplayAlert("В Вашей корзине", "" + "Бик Бургеров", "Ok"); TotalCorrect(); BikBurgerPage.TotalCorrect(_burgerPage); SoupPage.TotalCorrect(_soupPage); Sandwich.TotalCorrect(_sandPage); }
public Zakaz(BikBurgerPage bp, SoupPage sp, Sandwich sand, GusBurger gb) { InitializeComponent(); InitList(); BindingContext = this; _bp = bp; _sp = sp; _sand = sand; _gb = gb; }
public static void TotalCorrect(Sandwich page) { try { page._total.Text = ""; page._total.Text = Order.OrderTotal.ToString(); } catch (Exception e) { } }
public BikBurgerPage(SoupPage sp, Sandwich sand, GusBurger gb) { InitializeComponent(); CreateLayout(); SetFoodImage(); SetCart(); SetCheckOut(); SetItemName(); _sp = sp; _sand = sand; _gb = gb; }
public static void AllZero(Sandwich item) { if (item != null) { item._total.Text = ""; item._howMany.Text = ""; item._sandCounter = 0; } Order.CountSand = 0; Order.OrderTotal = 0; }
void CreateContentPages() { ContentPage contGusBurger = new ContentPage(); contGusBurger.Content = _layout; Children.Add(contGusBurger); _burgerPage = new BikBurgerPage(_soupPage, _sandPage, this); _soupPage = new SoupPage(_burgerPage, _sandPage, this); _sandPage = new Sandwich(_burgerPage, _soupPage, this); Children.Add(_burgerPage); Children.Add(_soupPage); Children.Add(_sandPage); }