private void Button3_Click(object sender, EventArgs e) { if (TrimNames()) { try { bool ok = party.AddNewGuest(txtfirstName.Text, txtLastname.Text); if (!ok) { MessageBox.Show("List is full! New guest not added!", "Error"); } else { UpdateGUI(); } } catch (NullReferenceException) { MessageBox.Show("Please create a list first!"); InitializeGUI(); //throw; } } }