This commit is contained in:
23
source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs
generated
23
source/Plugins/AyaNova.Plugin.V8/Opt.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
@@ -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<Guid, string> TagMap = new Dictionary<Guid, string>();
|
||||
private Dictionary<string, long> LocaleMap = new Dictionary<string, long>();
|
||||
|
||||
private string ImportTag = "v7-import";
|
||||
private string ImportTag = string.Empty;
|
||||
|
||||
private static void AddImportTag(List<string> tags){
|
||||
private void AddImportTag(List<string> tags){
|
||||
if(!string.IsNullOrWhiteSpace(ImportTag))
|
||||
tags.Add(ImportTag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user