private void UpdateShapeComboBox() { shapeComboBox.Items.Clear(); foreach (string shape in shapeNames.Values) shapeComboBox.Items.Add(shape); shapeComboBox.Enabled = true; if (shapeComboBox.Items.Count > 0) shapeComboBox.SelectedIndex = 0; }