Exemplo n.º 1
0
 public void OnDataSent(object source, EventArgs e)
 {
     GusBurger.AllZero(_gb);
     Sandwich.AllZero(_sand);
     SoupPage.AllZero(_sp);
     BikBurgerPage.AllZero(_bp);
 }
Exemplo n.º 2
0
 protected override void OnCurrentPageChanged()
 {
     // DisplayAlert("В Вашей корзине", "" + "Бик Бургеров", "Ok");
     TotalCorrect();
     BikBurgerPage.TotalCorrect(_burgerPage);
     SoupPage.TotalCorrect(_soupPage);
     Sandwich.TotalCorrect(_sandPage);
 }
Exemplo n.º 3
0
 public static void TotalCorrect(BikBurgerPage page)
 {
     try
     {
         page._total.Text = "";
         page._total.Text = Order.OrderTotal.ToString();
     }
     catch (Exception e)
     {
     }
 }
Exemplo n.º 4
0
        public Zakaz(BikBurgerPage bp, SoupPage sp, Sandwich sand, GusBurger gb)
        {
            InitializeComponent();
            InitList();
            BindingContext = this;

            _bp   = bp;
            _sp   = sp;
            _sand = sand;
            _gb   = gb;
        }
Exemplo n.º 5
0
        public static void AllZero(BikBurgerPage item)
        {
            if (item != null)
            {
                item._total.Text      = "";
                item._howMany.Text    = "";
                item._biBurgerCounter = 0;
            }

            Order.CountBik   = 0;
            Order.OrderTotal = 0;
        }
Exemplo n.º 6
0
        public SoupPage(BikBurgerPage bp, Sandwich sand, GusBurger gb)
        {
            InitializeComponent();
            CreateLayout();
            SetFoodImage();
            SetCart();
            SetCheckOut();
            SetItemName();

            _bp   = bp;
            _sand = sand;
            _gb   = gb;
        }
Exemplo n.º 7
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);
        }