public static BlogDemoor_v4 CreateDataManager_v4(string parameters = null) { NamedValues <ZValue> parameters2 = ParseParameters(parameters); bool test = WebData.GetTestValue(parameters2); return(BlogDemoor_v4.Create(test)); }
public BlogDemoorOXmlDoc(BlogDemoor_v4 dataManager, string patchesFile = null) { _dataManager = dataManager; //_patchesFile = patchesFile; CreateHtmlToOXmlElements(); SetFrCulture(); ReadPatchesFile(patchesFile); }
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(); }
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); }