chore: add "keygen running" indicator label
This commit is contained in:
parent
65b3376d94
commit
d7ad946c35
|
@ -52,6 +52,7 @@
|
|||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label_threads_warning = new System.Windows.Forms.Label();
|
||||
this.label_keygen_running = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// msgbox
|
||||
|
@ -281,11 +282,24 @@
|
|||
this.label_threads_warning.Size = new System.Drawing.Size(0, 13);
|
||||
this.label_threads_warning.TabIndex = 32;
|
||||
//
|
||||
// label_keygen_running
|
||||
//
|
||||
this.label_keygen_running.AutoSize = true;
|
||||
this.label_keygen_running.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label_keygen_running.ForeColor = System.Drawing.Color.Red;
|
||||
this.label_keygen_running.Location = new System.Drawing.Point(734, 480);
|
||||
this.label_keygen_running.Name = "label_keygen_running";
|
||||
this.label_keygen_running.Size = new System.Drawing.Size(125, 16);
|
||||
this.label_keygen_running.TabIndex = 33;
|
||||
this.label_keygen_running.Text = "keygen running...";
|
||||
this.label_keygen_running.Visible = false;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(866, 508);
|
||||
this.Controls.Add(this.label_keygen_running);
|
||||
this.Controls.Add(this.label_threads_warning);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
|
@ -348,6 +362,7 @@
|
|||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label_threads_warning;
|
||||
private System.Windows.Forms.Label label_keygen_running;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
Form1.cs
2
Form1.cs
|
@ -86,7 +86,7 @@ namespace KRY_0x04
|
|||
|
||||
private void keygen_button_Click(object sender, EventArgs e)
|
||||
{
|
||||
lh.genprimes_handler(threadsbox, label_threads_warning);
|
||||
lh.genprimes_handler(threadsbox, label_threads_warning, label_keygen_running);
|
||||
}
|
||||
|
||||
private void threadsbox_TextChanged(object sender, EventArgs e)
|
||||
|
|
|
@ -387,7 +387,7 @@ namespace KRY_0x04
|
|||
}
|
||||
|
||||
|
||||
internal void genprimes_handler(TextBox threadsbox, Label threads_warning)
|
||||
internal void genprimes_handler(TextBox threadsbox, Label threads_warning, Label keygen_running)
|
||||
{
|
||||
MessageBox.Show("in the next step, you will be choosing path for saving the key pair", "info", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
string path = "";
|
||||
|
@ -413,7 +413,9 @@ namespace KRY_0x04
|
|||
MessageBox.Show("error: you have to choose a path", "this didn't work...", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
keygen_running.Visible = true;
|
||||
rsapls.genprimes_handler(threadsbox, threads_warning, path);
|
||||
keygen_running.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue