public void PayOrder()
        {
            if (SaveCurrentOrder(true))
            {
                SaveCurrentOrder(false);
                ((MainActivity)this.Context).AddOrderToQueue(currentOrder);
            }

            PayCurrentOrder();

            ResetOrder();

            if (tillPopup != null)
            {
                tillPopup.Dismiss();
                tillPopup = null;
            }
        }
        private void PayButton_Click(object sender, EventArgs e)
        {
            if (tillPopup != null)
            {
                return;
            }

            if (currentOrder.OrderItems.Count > 0)
            {
                TillLayout tillLayout = new TillLayout(this.Context, this);
                tillLayout.TotalDue = currentOrder.TotalPrice();

                tillPopup        = new TillPopup(tillLayout);
                tillPopup.Width  = 600;
                tillPopup.Height = 700;

                tillPopup.ShowAtLocation(container, GravityFlags.NoGravity, 90, 100);

                //tillLayout.LayoutParameters.Height = 800;
            }
        }
 public void CancelTill()
 {
     tillPopup.Dismiss();
     tillPopup = null;
 }