private void number_SelectedIndexChanged(object sender, EventArgs e) { JerseyNumber jerseyNumber = retiredNumbers[(int)number.SelectedItem]; nameLabel.Text = jerseyNumber.Player; yearLabel.Text = jerseyNumber.YearRetired.ToString(); }
private void numberComboBox_SelectedIndexChanged(object sender, EventArgs e) { JerseyNumber jerseyNumber = retiredNumbers[(int)numberComboBox.SelectedItem]; playerTextBox.Text = jerseyNumber.Player; yearTextBox.Text = jerseyNumber.YearRetired.ToString(); }