public PickRobotForm(List <RobotPreset> items) { InitializeComponent(); for (int i = 0; i < items.Count; i++) { comboBox1.Items.Add(PickRobotForm.GetRobotPresetName(items[i])); } robotPresets = items; }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { this.labelNameInfo.Text = PickRobotForm.GetRobotPresetName(robotPresets[comboBox1.SelectedIndex]); }