예제 #1
0
파일: WebData.cs 프로젝트: 24/source_04
        public static BlogDemoor_v4 CreateDataManager_v4(string parameters = null)
        {
            NamedValues <ZValue> parameters2 = ParseParameters(parameters);
            bool test = WebData.GetTestValue(parameters2);

            return(BlogDemoor_v4.Create(test));
        }
예제 #2
0
 public BlogDemoorOXmlDoc(BlogDemoor_v4 dataManager, string patchesFile = null)
 {
     _dataManager = dataManager;
     //_patchesFile = patchesFile;
     CreateHtmlToOXmlElements();
     SetFrCulture();
     ReadPatchesFile(patchesFile);
 }
예제 #3
0
파일: WebData.cs 프로젝트: 24/source_04
        public static void Backup(string parameters = null)
        {
            Backup backup = new Backup();

            //BlogDemoor_v3 blogDemoor = CreateDataManager_v3(parameters);
            BlogDemoor_v4 blogDemoor = CreateDataManager_v4(parameters);

            XElement xe = XmlConfig.CurrentConfig.XDocument.Root;

            backup.TempBackupDirectory = xe.zXPathValue("MongoBackupTmpDirectory");  // TempBackupDirectory
            backup.BackupDirectory     = xe.zXPathValue("MongoBackupDirectory");     // BackupDirectory
            backup.ZipFilename         = xe.zXPathValue("ZipFilename", "BlogDemoor");
            backup.Add(dir => blogDemoor.Backup(dir));
            backup.DoBackup();
        }
예제 #4
0
        public static BlogDemoor_v4 Create(bool test)
        {
            //XElement xe;
            //if (!test)
            //    xe = XmlConfig.CurrentConfig.GetElement(__configName);
            //else
            //{
            //    Trace.WriteLine("{0} init for test", __configName);
            //    xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test");
            //}

            if (test)
            {
                Trace.WriteLine("{0} init for test", __configName);
            }
            XElement xe = GetConfigElement(test);

            __current = new BlogDemoor_v4();
            __current._configElement        = xe;
            __current.HeaderPageNominalType = typeof(BlogDemoorHeaderDataPages);
            __current.Create(xe);
            //__current.DetailDataManager.Version = 2;     // use WebData<TData>.Load()
            return(__current);
        }