Пример #1
0
 private ElementClassSet getSectionClasses(
     bool?expanded, PageModificationValue <string> expandedPmv, ElementClass closedClass, ElementClass expandedClass)
 {
     return(!expanded.HasValue ? expandedClass :
            expandedPmv == null ? expanded.Value ? expandedClass : closedClass :
            expandedPmv.ToCondition(bool.FalseString.ToCollection())
            .ToElementClassSet(closedClass)
            .Add(expandedPmv.ToCondition(bool.TrueString.ToCollection()).ToElementClassSet(expandedClass)));
 }
Пример #2
0
 /// <summary>
 /// Adds element classes to this class.
 /// </summary>
 public static ElementClassSet Add(this ElementClass elementClass, ElementClassSet classSet)
 {
     return(((ElementClassSet)elementClass).Add(classSet));
 }
 private string getSelector(ElementClass elementClass) => "div.{0}".FormatWith(elementClass.ClassName);