private bool addValueInComboBox(ComboBox cb, Type type) { List <string> source = EnumTools.GetEnumListByType(type); if (source == null) { return(false); } for (int i = 0; i < source.Count; i++) { cb.Items.Add(source[i]); } return(true); }