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; }
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; }
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); }