private void button5_Click(object sender, EventArgs e) { try { Customer cus = client.GetCustomerByPhone(CusPhoneBox.Text); client.MakeReservation(RowBox.Text, SeatsBox.Text, int.Parse(SchIdBox3.Text), cus.CusID); BookBox.AppendText("Reservation was made for " + cus.name); } catch { BookBox.AppendText("Customer doesn't exist, or the chosen seats aren't available"); } }