// assign values to the field [change string values] private void PopulateField(List <HeroState> list) { string name = "State"; string[] items = SimpleGUICommon.PopulateStateDropDownField(list, "S:"); if (items.Length > 0) { field.setValues(name, items); } else { field.clearValues(); } }