예제 #1
0
        private void number_SelectedIndexChanged(object sender, EventArgs e)
        {
            JerseyNumber jerseyNumber = retiredNumbers[(int)number.SelectedItem];

            nameLabel.Text = jerseyNumber.Player;
            yearLabel.Text = jerseyNumber.YearRetired.ToString();
        }
예제 #2
0
        private void numberComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            JerseyNumber jerseyNumber = retiredNumbers[(int)numberComboBox.SelectedItem];

            playerTextBox.Text = jerseyNumber.Player;
            yearTextBox.Text   = jerseyNumber.YearRetired.ToString();
        }