示例#1
0
        protected override void FillObject(XmlDescriptor d, RuleElement container)
        {
            base.FillObject(d, container);

            if (Enum.TryParse(d.GetElementName(), true, out WorshipSequenceKind kind))
            {
                (container as WorshipSequence).Kind = kind;
            }
        }
示例#2
0
        protected override void FillObject(XmlDescriptor d, RuleElement container)
        {
            base.FillObject(d, container);

            if (Enum.TryParse(d.GetElementName(), true, out YmnosStructureKind kind))
            {
                (container as YmnosStructureRule).Kind = kind;
            }

            XmlAttribute attr = d.Element.Attributes[RuleConstants.TotalCountAttribute];

            if (int.TryParse(attr?.Value, out int count))
            {
                (container as YmnosStructureRule).TotalYmnosCount = count;
            }
        }
 protected override RuleElement CreateObject(XmlDescriptor d) => new ModifyDay(d.GetElementName());
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new TheotokionRule(d.GetElementName(), SerializerRoot.BookStorage.TheotokionApp));
 }
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new KKatavasiaRule(d.GetElementName(), SerializerRoot.BookStorage.Katavasia));
 }
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new IsCelebrating(d.GetElementName()));
 }
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new MoreEquals(d.GetElementName()));
 }
 protected override RuleElement CreateObject(XmlDescriptor d) => new KAfterRule(d.GetElementName());
 protected override RuleElement CreateObject(XmlDescriptor d) => new KSedalenTheotokionRule(d.GetElementName());
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new IsTwoSaints(d.GetElementName()));
 }
示例#11
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new KanonasRule(d.GetElementName(), SerializerRoot, new KanonasRuleVMFactory(SerializerRoot)));
 }
示例#12
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new WorshipRule(d.GetElementName()));
 }
示例#13
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 => new PsalmRule(d.GetElementName(), SerializerRoot.BookStorage.Psalter, new PsalmRuleVMFactory(SerializerRoot));
示例#14
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new GetDayOfWeek(d.GetElementName()));
 }
示例#15
0
 protected override RuleElement CreateObject(XmlDescriptor d) => new KKanonasItemRule(d.GetElementName());
示例#16
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new AinoiRule(new AinoiRuleVMFactory(SerializerRoot), SerializerRoot, d.GetElementName()));
 }
示例#17
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new ExecContainer(d.GetElementName()));
 }
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new TextHolder(new TextHolderVMFactory(SerializerRoot), d.GetElementName()));
 }
示例#19
0
 protected override RuleElement CreateObject(XmlDescriptor d)
 {
     return(new DateByDaysFromEaster(d.GetElementName(), SerializerRoot.BookStorage.Easters));
 }
示例#20
0
 protected override RuleElement CreateObject(XmlDescriptor d) => new WorshipSequence(SerializerRoot, d.GetElementName());
 protected override RuleElement CreateObject(XmlDescriptor d) => new KontakionRule(d.GetElementName(), new KontakionRuleVMFactory(SerializerRoot));
 protected override RuleElement CreateObject(XmlDescriptor d) => new ModifyReplacedDay(d.GetElementName(), SerializerRoot.BookStorage.Easters);