public void PayOrder() { if (SaveCurrentOrder(true)) { SaveCurrentOrder(false); ((MainActivity)this.Context).AddOrderToQueue(currentOrder); } PayCurrentOrder(); ResetOrder(); if (tillPopup != null) { tillPopup.Dismiss(); tillPopup = null; } }