public static Color GetDefaultBackground(this DataColumn dc)
 {
     if (!dc.ExtendedProperties.ContainsKey(templateFieldDataTable.col_color))
     {
         return(Color.LightGray);
     }
     return(ColorWorks.GetColorSafe(dc.ExtendedProperties[templateFieldDataTable.col_color]));
 }
 public static Color GetTextColor(this DataColumn dc)
 {
     if (!dc.ExtendedProperties.ContainsKey(templateFieldDataTable.col_textColor))
     {
         return(Color.DarkGray);
     }
     return(ColorWorks.GetColorSafe(dc.ExtendedProperties[templateFieldDataTable.col_textColor]));
 }
 public static Color DefaultBackground(this DataColumn dc, Color default_col_color)
 {
     if (!dc.ExtendedProperties.ContainsKey(templateFieldDataTable.col_color))
     {
         dc.ExtendedProperties.add(templateFieldDataTable.col_color, default_col_color);
     }
     return(ColorWorks.GetColorSafe(dc.ExtendedProperties[templateFieldDataTable.col_color]));
 }