Esempio n. 1
0
        public static void LoadFromString(string hss)
        {
            XmlNodeList classes = StyleParser.GetClasses(hss);

            foreach (XmlNode styleClassNode in classes)
            {
                if (styleClassNode is XmlElement)
                {
                    StyleClass styleClass = new StyleClass(styleClassNode);

                    if (!_classes.ContainsKey(styleClass.Name))
                    {
                        _classes.Add(styleClass.Name, new StyleClassContainer());
                    }

                    _classes[styleClass.Name].AddClassState(styleClass, styleClass.State);
                }
            }
        }
Esempio n. 2
0
 public StyleClass(string classStr)
 {
     Load(StyleParser.StringToNode(classStr));
 }