private void btnSecureAdvancePayment_Click(object sender, EventArgs e) { if (carPark.GetCurrentPrePaidTickets() < carPark.GetMaxPrePaidSpaces()) { ticketMachine.PrintPrePaidTicket(); UpdateDisplay(); } else { MessageBox.Show("There are no more avaliable advance bookings"); } }
public void PrePaidChecked() { message = "Please park on floor 2 in space: " + Convert.ToString((carPark.GetMaxPrePaidSpaces() - carPark.GetCurrentPrePaidSpaces()) + 1); carPark.PrePaidChecked(); }