diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 1b9f237..8ef5046 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -156,7 +156,7 @@ namespace AyaNova.PlugIn.V8 /// then zip it all up into a single archive file and then erase the temporary folder /// private async void DoExport() - { + { //Show progress form ProgressForm progress = new ProgressForm(); progress.Show(); @@ -261,22 +261,7 @@ namespace AyaNova.PlugIn.V8 } #endregion locales - #region REGIONS - private void ExportRegions(ProgressForm progress) - { - // List objectExcludeProperties = new List(standardExcludePropertiesList); - RegionList l = RegionList.GetList(string.Empty); - progress.Append("Dumping " + l.Count.ToString() + " Regions"); - foreach (RegionList.RegionListInfo i in l) - { - - Region o = Region.GetItem(i.LT_Region_Label_Name.Value); - //DumpObjectToFolder(tempArchiveFolder, o, "region." + o.ID.ToString(), objectExcludeProperties, new TypeAndID(RootObjectTypes.Region, o.ID)); - - } - } - #endregion #region Seeds private class GZSeeds @@ -434,6 +419,16 @@ namespace AyaNova.PlugIn.V8 } #endregion + #region REGIONS + private void ExportRegions(ProgressForm progress) + { + RegionList l = RegionList.GetList(string.Empty); + progress.Append("Compiling " + l.Count.ToString() + " Regions"); + foreach (RegionList.RegionListInfo i in l) + TagMap.Add(i.LT_Region_Label_Name.Value, util.NormalizeTag(i.LT_Region_Label_Name.Display + "." + "region")); + } + #endregion + #region Client groups private void ExportClientGroups(ProgressForm progress) { @@ -651,6 +646,7 @@ namespace AyaNova.PlugIn.V8 private void Tagit(Guid g, List tags) { if (g == Guid.Empty) return; + if (!TagMap.ContainsKey(g)) return; var t = TagMap[g]; if (!string.IsNullOrWhiteSpace(t)) {