예제 #1
0
        private static Color CreateColor(XDesign_Color aColor)
        {
            var red   = int.Parse(aColor.webColor.Substring(1, 2), NumberStyles.HexNumber);
            var green = int.Parse(aColor.webColor.Substring(3, 2), NumberStyles.HexNumber);
            var blue  = int.Parse(aColor.webColor.Substring(5, 2), NumberStyles.HexNumber);

            return(Color.FromArgb(red, green, blue));
        }
예제 #2
0
            private static XDesign_Color XDesign_Color(MDesign_Color mColor)
            {
                var result = new XDesign_Color()
                {
                    webColor = mColor.WebColor
                };

                return(result);
            }