Пример #1
0
        void VisitIn(DOMToggleGroup toggleGroup)
        {
            Assert.IsNotNull(toggleGroup);

            var fieldName = WriteChild(DOMToggleGroup.kTag, GetCSharpType(toggleGroup, DOMToggleGroup.kClass), toggleGroup);

            WriteClasses(fieldName, toggleGroup.@class);
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "firstClass", toggleGroup.firstClass, "{0}.{1} = \"{2}\";");
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "middleClass", toggleGroup.middleClass, "{0}.{1} = \"{2}\";");
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "lastClass", toggleGroup.lastClass, "{0}.{1} = \"{2}\";");
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "singleClass", toggleGroup.singleClass, "{0}.{1} = \"{2}\";");
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "allowNoneSelected", toggleGroup.allowNoneSelected);
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "allowMultiple", toggleGroup.allowMultiple);
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "activeIndexes", toggleGroup.activeIndexes);
            WriteSetOrBind(fieldName, DOMToggleGroup.kClass, "activeIndex", toggleGroup.activeIndex);

            PushAddChildMethod(fieldName);
        }
Пример #2
0
 void VisitOut(DOMToggleGroup toggleGroup)
 {
     PopAddChildMethod();
 }