Beispiel #1
0
        public bool SetStyle(string newStyleStr, ref string styleStr, ref Style style)
        {
            if (newStyleStr == null)
            {
                newStyleStr = "";
            }
            if (styleStr == newStyleStr)
            {
                return(false);
            }
            Style newStyle  = Sb.Parse(newStyleStr);
            bool  hasErrors = Sb.CheckErrors();

            if (!hasErrors)
            {
                style    = newStyle;
                styleStr = newStyleStr;
            }
            return(hasErrors);
        }