예제 #1
0
 public void OnDataSent(object source, EventArgs e)
 {
     GusBurger.AllZero(_gb);
     Sandwich.AllZero(_sand);
     SoupPage.AllZero(_sp);
     BikBurgerPage.AllZero(_bp);
 }
예제 #2
0
 protected override void OnCurrentPageChanged()
 {
     // DisplayAlert("В Вашей корзине", "" + "Бик Бургеров", "Ok");
     TotalCorrect();
     BikBurgerPage.TotalCorrect(_burgerPage);
     SoupPage.TotalCorrect(_soupPage);
     Sandwich.TotalCorrect(_sandPage);
 }
예제 #3
0
        public Zakaz(BikBurgerPage bp, SoupPage sp, Sandwich sand, GusBurger gb)
        {
            InitializeComponent();
            InitList();
            BindingContext = this;

            _bp   = bp;
            _sp   = sp;
            _sand = sand;
            _gb   = gb;
        }
예제 #4
0
 public static void TotalCorrect(Sandwich page)
 {
     try
     {
         page._total.Text = "";
         page._total.Text = Order.OrderTotal.ToString();
     }
     catch (Exception e)
     {
     }
 }
예제 #5
0
        public BikBurgerPage(SoupPage sp, Sandwich sand, GusBurger gb)
        {
            InitializeComponent();
            CreateLayout();
            SetFoodImage();
            SetCart();
            SetCheckOut();
            SetItemName();

            _sp   = sp;
            _sand = sand;
            _gb   = gb;
        }
예제 #6
0
        public static void AllZero(Sandwich item)
        {
            if (item != null)
            {
                item._total.Text   = "";
                item._howMany.Text = "";
                item._sandCounter  = 0;
            }


            Order.CountSand  = 0;
            Order.OrderTotal = 0;
        }
예제 #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);
        }