コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }