private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e) { Action.GameControl gc = new Action.GameControl(); int st; st = gc.MaxNumberOfViewers(comboBox1.SelectedItem.ToString()); numericUpDown1.Maximum = st; }
public void AddValues() { Action.GameControl gc = new Action.GameControl(); List <string> st = new List <string>(); st = gc.CommandsReturning(); int j = 0; foreach (string i in st) { comboBox4.Items.Insert(j, i); comboBox5.Items.Insert(j, i); j++; } st.Clear(); st = gc.StadionReturning(); j = 0; foreach (string i in st) { comboBox1.Items.Insert(j, i); j++; } }