Beispiel #1
0
        private DayRule GetDayRule(ICustomInterpreted element)
        {
            DayRule result = null;

            if (element is ModifyReplacedDay modifyReplacedDay)
            {
                if (modifyReplacedDay.Kind == KindOfReplacedDay.Menology)
                {
                    result = _dbContext.GetMenologyRule(_typiconVersionId, modifyReplacedDay.DateToReplaceCalculated);
                }
                else
                {
                    result = _dbContext.GetTriodionRule(_typiconVersionId, modifyReplacedDay.DateToReplaceCalculated);
                }
            }
            else if ((element is ModifyDay modifyDay) &&
                     (modifyDay.MoveDateCalculated.Year == _modifiedYear.Year))
            {
                result = ProcessingDayRule;
            }

            return(result);
        }