public static string GetValue(PresetColumn targetValue, string identifierValue, PresetColumn identifierType = PresetColumn.Name) { for (int i = 0; i < currentPresetCount; i++) { if (allPresets[(int)identifierType, i] == identifierValue) { if (targetValue == PresetColumn.Index) { return(i.ToString()); } else { return(allPresets[(int)targetValue, i]); } } } return(""); }
public static int TableValue(PresetColumn column) { return((int)column); }