Beispiel #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;
        }
Beispiel #2
0
 public static PrintTitleManagerCreator GetCreatePrintTitleManager(string parameters = null)
 {
     PrintTitleManagerCreator createPrintTitleManager = new PrintTitleManagerCreator();
     //NamedValues<ZValue> parameters2 = NamedValues.ParseValues(parameters);
     NamedValues<ZValue> parameters2 = ParseParameters(parameters);
     createPrintTitleManager.Init(GetDownloadAutomateManagerConfig(GetTestValue(parameters2)));
     //if (parameters != null)
     //    createPrintTitleManager.SetParameters(NamedValues.ParseValues(parameters));
     createPrintTitleManager.SetParameters(parameters2);
     return createPrintTitleManager;
 }
Beispiel #3
0
        public static PrintTitleManagerCreator GetCreatePrintTitleManager(string parameters = null)
        {
            PrintTitleManagerCreator createPrintTitleManager = new PrintTitleManagerCreator();
            //NamedValues<ZValue> parameters2 = NamedValues.ParseValues(parameters);
            NamedValues <ZValue> parameters2 = ParseParameters(parameters);

            createPrintTitleManager.Init(GetDownloadAutomateManagerConfig(GetTestValue(parameters2)));
            //if (parameters != null)
            //    createPrintTitleManager.SetParameters(NamedValues.ParseValues(parameters));
            createPrintTitleManager.SetParameters(parameters2);
            return(createPrintTitleManager);
        }