Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 protected MColor ParseColor(string def, MColor defaultValue)
 => ColorFormatter.FromString(def, defaultValue);