internal static string ColorToString(DrawingColor c, bool withoutAlpha)
 {
     if (c == DrawingColor.Empty)
     {
         return("");
     }
     return(c.Format(withoutAlpha));
 }
        internal static string ColorToString(DrawingColor c)
        {
            if (c == DrawingColor.Empty)
            {
                return("");
            }

            return(c.Format());

            //#if OLAPWINFORMS || OLAPWEB
            //            if (c == Color.Empty)
            //                return "";
            //            return ("#" + c.R.ToString("X2", null) + c.G.ToString("X2", null) + c.B.ToString("X2", null));
            //#endif // OLAPWINFORMS || OLAPWEB
            //#if OLAPWPF
            //            throw new NotSupportedException();
            //            return c.ToString();
            //            //if (c == Color.Empty) return "";
            //            //return ("#" + c.R.ToString("X2", null) + c.G.ToString("X2", null) + c.B.ToString("X2", null));
            //#endif // OLAPWPF
        }