private void allPassengersToolStripMenuItem_Click(object sender, EventArgs e) { DisplayPeopleForm displayso = new DisplayPeopleForm(); displayso.Text = "Display All Passengers"; displayso.EnterIDNumberLabel.Visible = false; displayso.EnterIDNumberTextBox.Visible = false; displayso.SearchButton.Visible = false; displayso.MdiParent = this; displayso.Show(); }
private void DisplayACustomerToolStripMenuItem_Click(object sender, EventArgs e) { DisplayPeopleForm displayso = new DisplayPeopleForm(); displayso.Text = "Display A Customer"; displayso.MdiParent = this; displayso.Displayallbutton1.Visible = false; displayso.Show(); whoToSearch = true; displayso.PassengerListBox.Items.Clear(); displayso.EnterIDNumberTextBox.Clear(); }