Example #1
0
        private static string ConvertColor(string value, TimetableVersion version)
        {
            var mcolor = ColorFormatter.FromString(value, null);

            return(ColorFormatter.ToString(mcolor, version == TimetableVersion.JTG2_x));
        }
Example #2
0
 public string ToName(MColor color)
 => colors.FirstOrDefault(c => c.Value == color).Key ?? ColorFormatter.ToString(color);