title: C# Change label depending of ComboBox Selected Index
body: <p>I want to display certain value into a label depending of the item selected in the comboBox, each item in the comboBox will display a different value, problem is the comboBox has a lot of items and each one needs to display a different value</p>
  
  <pre><code>private void comboBox_SelectedIndexChanged(object sender, EventArgs e)
  {
     switch (comboBox.SelectedIndex)
          {
              case 0:
                  if (comboBox.SelectedIndex == 0)
                  {
                      Label.Text = "8";
                  }
                  break;
              case 1:
                  if (comboBox.SelectedIndex == 1)
                  {
                      Label.Text = "15";
                  }
                  break;
              case 2:
                  if (comboBox.SelectedIndex == 2)
                  {
                      Label.Text = "60";
                  }
                  break;
           }
  }                      
  </code></pre>
  
  <p>How can I improve this and do it shorter? I was told to use an object array but how to verify which item is selected?</p>