This commit is contained in:
2018-08-29 17:40:11 +00:00
parent 9048d6b98e
commit 9e5e12f5be
5 changed files with 55 additions and 35 deletions

View File

@@ -171,7 +171,9 @@ namespace AyaNova.Plugin.Dump
ProgressForm progress = new ProgressForm();
progress.Show();
progress.StartedImport();
progress.Append("Dumping data to " + tempArchiveFolder);
//DUMP IT!
dumpGlobalSettings(tempArchiveFolder, progress);
@@ -191,6 +193,8 @@ namespace AyaNova.Plugin.Dump
Directory.Delete(tempArchiveFolder, true);
progress.Append("Dump completed");
progress.FinishedImport();
//-----------------------------------
//endof method
}

View File

@@ -34,21 +34,24 @@
//
// edOut
//
this.edOut.Cursor = System.Windows.Forms.Cursors.Default;
this.edOut.Dock = System.Windows.Forms.DockStyle.Top;
this.edOut.Location = new System.Drawing.Point(0, 0);
this.edOut.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.edOut.Margin = new System.Windows.Forms.Padding(2);
this.edOut.Multiline = true;
this.edOut.Name = "edOut";
this.edOut.ReadOnly = true;
this.edOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.edOut.Size = new System.Drawing.Size(667, 410);
this.edOut.Size = new System.Drawing.Size(870, 546);
this.edOut.TabIndex = 0;
//
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClose.Location = new System.Drawing.Point(574, 473);
this.btnClose.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnClose.Location = new System.Drawing.Point(777, 577);
this.btnClose.Margin = new System.Windows.Forms.Padding(2);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(82, 32);
this.btnClose.TabIndex = 1;
@@ -61,13 +64,12 @@
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnClose;
this.ClientSize = new System.Drawing.Size(667, 516);
this.ClientSize = new System.Drawing.Size(870, 620);
this.ControlBox = false;
this.Controls.Add(this.btnClose);
this.Controls.Add(this.edOut);
this.Cursor = System.Windows.Forms.Cursors.AppStarting;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "ProgressForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Dumping...";

View File

@@ -16,6 +16,19 @@ namespace AyaNova.Plugin.Dump
InitializeComponent();
}
public void StartedImport()
{
Cursor.Current = Cursors.WaitCursor;
btnClose.Enabled = false;
}
public void FinishedImport()
{
Cursor.Current = Cursors.Default;
btnClose.Enabled = true;
}
public void Append(string txt)
{
edOut.AppendText(txt + "\r\n");