private void btnAttendingCus_Click(object sender, EventArgs e) { // view for all the customers who are attending a certain event btnAttendingCus.Hide(); btnShowEvents.Text = "Back to Event Details"; labelFirstColumn.Text = "Number"; labelSecondColumn.Text = "Customer Name"; labelThirdColumn.Text = ""; labelRegistered.Hide(); labelAvailable.Hide(); lblMessage.Show(); clearEvents(); foreach (string attendees in currentCoord.attendeeList(Convert.ToInt32(textBoxId.Text))) { // show all customers attending event if (attendees != "") { lblMessage.Text = ""; string[] attendeeFields = attendees.Split(';'); labelFirstColumnInfo.Text += attendeeFields[0] + "\n\n"; labelSecondColumnInfo.Text += attendeeFields[1] + "\n\n"; lblMessage.Hide(); } else { lblMessage.Text = "No Customers attending"; } } }