private static string ConvertColor(string value, TimetableVersion version) { var mcolor = ColorFormatter.FromString(value, null); if (mcolor != null) { return(ColorFormatter.ToString(mcolor, version == TimetableVersion.JTG2_x)); } throw new Exception("Found unknown color string " + value); }
protected MColor ParseColor(string def, MColor defaultValue) => ColorFormatter.FromString(def, defaultValue);