Ejemplo n.º 1
0
 public void LoadCssDoc(WebDom.CssDocument cssDoc)
 {
     foreach (WebDom.CssDocMember cssDocMember in cssDoc.GetCssDocMemberIter())
     {
         switch (cssDocMember.MemberKind)
         {
             case WebDom.CssDocMemberKind.RuleSet:
                 this.AddRuleSet((WebDom.CssRuleSet)cssDocMember);
                 break;
             case WebDom.CssDocMemberKind.Media:
                 this.AddMedia((WebDom.CssAtMedia)cssDocMember);
                 break;
             default:
             case WebDom.CssDocMemberKind.Page:
                 throw new NotSupportedException();
         }
     }
 }