From d16468d44bdcd41d610b6a20ea62c122787cf30b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 9 Aug 2021 19:45:09 +0000 Subject: [PATCH] --- .../Plugins/AyaNova.Plugin.V8/Opt.Designer.cs | 23 +++++++++++++++++++ source/Plugins/AyaNova.Plugin.V8/Opt.cs | 2 ++ source/Plugins/AyaNova.Plugin.V8/V8.cs | 5 ++-- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs b/source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs index 7528db4..f594fd8 100644 --- a/source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs +++ b/source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs @@ -34,6 +34,8 @@ this.ckExportAssignedDocs = new System.Windows.Forms.CheckBox(); this.lblPreRelease = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); + this.edTags = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // btnCancel @@ -97,6 +99,23 @@ this.label2.Text = "Export will erase *all* data on AyaNova 8 Server"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // + // edTags + // + this.edTags.Location = new System.Drawing.Point(26, 151); + this.edTags.Name = "edTags"; + this.edTags.Size = new System.Drawing.Size(391, 20); + this.edTags.TabIndex = 40; + this.edTags.Text = "v7-import"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(26, 132); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(120, 13); + this.label1.TabIndex = 41; + this.label1.Text = "Tag all exported objects"; + // // Opt // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -104,6 +123,8 @@ this.AutoSize = true; this.ClientSize = new System.Drawing.Size(614, 353); this.ControlBox = false; + this.Controls.Add(this.label1); + this.Controls.Add(this.edTags); this.Controls.Add(this.label2); this.Controls.Add(this.lblPreRelease); this.Controls.Add(this.ckExportAssignedDocs); @@ -126,5 +147,7 @@ private System.Windows.Forms.CheckBox ckExportAssignedDocs; private System.Windows.Forms.Label lblPreRelease; private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox edTags; + private System.Windows.Forms.Label label1; } } \ No newline at end of file diff --git a/source/Plugins/AyaNova.Plugin.V8/Opt.cs b/source/Plugins/AyaNova.Plugin.V8/Opt.cs index 7a29183..b50760d 100644 --- a/source/Plugins/AyaNova.Plugin.V8/Opt.cs +++ b/source/Plugins/AyaNova.Plugin.V8/Opt.cs @@ -12,6 +12,8 @@ namespace AyaNova.PlugIn.V8 public partial class Opt : Form { public bool ExportAssignedDocs { get { return ckExportAssignedDocs.Checked; } } + public string Tags { get { return edTags.Text; } } + public Opt() { InitializeComponent(); diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 48e562d..4be2194 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -163,6 +163,7 @@ namespace AyaNova.PlugIn.V8 return; } ExportAssignedDocs = dOpt.ExportAssignedDocs; + ImportTag = dOpt.Tags; //here because we logged in fine and can proceed //MessageBox.Show("Login successful! JWT is " + util.JWT); @@ -236,9 +237,9 @@ namespace AyaNova.PlugIn.V8 private Dictionary TagMap = new Dictionary(); private Dictionary LocaleMap = new Dictionary(); - private string ImportTag = "v7-import"; + private string ImportTag = string.Empty; - private static void AddImportTag(List tags){ + private void AddImportTag(List tags){ if(!string.IsNullOrWhiteSpace(ImportTag)) tags.Add(ImportTag); }