Example #1
0
        public static string BuildColor(IComponent component, Control owner, string initialColor)
        {
            string str  = null;
            ISite  site = component.Site;

            if (site == null)
            {
                return(null);
            }
            if (site != null)
            {
                IWebFormsBuilderUIService service = (IWebFormsBuilderUIService)site.GetService(typeof(IWebFormsBuilderUIService));
                if (service != null)
                {
                    str = service.BuildColor(owner, initialColor);
                }
            }
            return(str);
        }