//JDK killed this one for the highlight fixes /*public static System.Drawing.Color? GetHighlightColor(string dateString) { * DateTime date; * if (DateTime.TryParse(dateString, out date)) * return GetHighlightColor(date); * else * return null; * } * */ /** * Returns the highlight color to be used given a change date. * If no highlight is needed, it will return the DefaultHighlightColor */ public static System.Drawing.Color?GetHighlightColor(DateTime date) { ChangeLogShadow shadow = PathMaker.LookupChangeLogShadow(); if (shadow == null) { return(null); } string color = shadow.GetColorStringForChange(date); return(ConvertColorStringToColor(color)); }
/** * Returns the highlight color to be used given a change version stamp. * If no highlight is needed, it will return the DefaultHighlightColor */ public static System.Drawing.Color?GetHighlightColor(string versionLabel) { ChangeLogShadow shadow = PathMaker.LookupChangeLogShadow(); if (shadow == null) { return(null); } String color = Strings.HighlightColorNone; if (versionLabel == null || versionLabel == "") { versionLabel = Strings.DefaultVersionStamp; } else { color = shadow.GetColorStringForChange(versionLabel); } return(ConvertColorStringToColor(color)); }