private void BuyDonut() { bool ordered = false; if (this.currentDonut != null && this.currentCustomer != null) { ordered = EventCRUD.BuyDonut(NewOrderID, currentDonut.donut_id, currentCustomer.customer_id, newQuantity); } if (ordered) { actionText = "Donuts Ordered"; } else { actionText = "Something went wrong upss"; } MessageBoxShowDelegate(ActionText); }