コード例 #1
0
        public FindPrintManager Create()
        {
            if (_version < 3 || _version > 6)
                throw new PBException("bad version {0}", _version);

            XmlConfig config = XmlConfig.CurrentConfig;
            _printConfig = config.GetConfig("PrintConfig");
            _printList1Config = config.GetConfig("PrintList1Config");
            _printList2Config = config.GetConfig("PrintList2Config");

            //_printTitleManager = CreatePrintTitleManager.Create(_version, _gapDayBefore, _gapDayAfter);
            PrintTitleManagerCreator createPrintTitleManager = new PrintTitleManagerCreator();
            createPrintTitleManager.Init(_xeConfig);
            createPrintTitleManager.SetParameters(_parameters);
            createPrintTitleManager.Version = _version;
            createPrintTitleManager.GapDayBefore = _gapDayBefore;
            createPrintTitleManager.GapDayAfter = _gapDayAfter;
            _printTitleManager = createPrintTitleManager.Create();

            _findDayManager = CreateFindDayManager();
            _printManager = CreatePrintManager();
            _postTypeDirectories = CreatePostTypeDirectories();
            _findPrintManager = _CreateFindPrintManager();

            return _findPrintManager;
        }
コード例 #2
0
ファイル: FindDayManager.cs プロジェクト: labeuze/source
 public static FindDay Find(FindDayManager findDayManager, string text)
 {
     FindDay findDay = new FindDay();
     findDay._enumerator = findDayManager.DayRegexList.Values.GetEnumerator();
     findDay._text = text;
     findDay.FindNext();
     return findDay;
 }
コード例 #3
0
ファイル: FindDayManager.cs プロジェクト: 24/source_04
        public static FindDay Find(FindDayManager findDayManager, string text)
        {
            FindDay findDay = new FindDay();

            findDay._enumerator = findDayManager.DayRegexList.Values.GetEnumerator();
            findDay._text       = text;
            findDay.FindNext();
            return(findDay);
        }