, Visual C#


              

,


{
// ComboBox2:
comboBox2.Items.Clear();
// :
while (myEnumerator2.MoveNext())
//
// comboBox2:
comboBox2.Items.Add(
myEnumerator2.Current);
}
// comboBox1
// 2:
if (comboBox1.SelectedIndex == 2)
{
// ComboBox2:
comboBox2.Items.Clear();
// :
while (myEnumerator3.MoveNext())
//
// comboBox2:
comboBox2.Items.Add(
myEnumerator3.Current);
}
// comboBox1
// 3:
if (comboBox1.SelectedIndex == 3)
{
// ComboBox2:
comboBox2.Items.Clear();
// :
while (myEnumerator4.MoveNext())
//
// comboBox2:
comboBox2.Items.Add(
myEnumerator4.Current);
}
}
, , , :
comboBox1 (Genie, Merlin, Peedy, Robby) - ,
comboBox2 70 - ,
, .
Properties comboBox2 ( comboBox2) Events SelectedIndexChanged. Form1.cs , ( ) .