-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpopupRecrypt.cs
39 lines (33 loc) · 948 Bytes
/
popupRecrypt.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Windows.Forms;
namespace AutoPuTTY
{
public partial class popupRecrypt : Form
{
public formOptions optionsform;
public popupRecrypt(formOptions form)
{
optionsform = form;
InitializeComponent();
}
private void formClosing(object sender, FormClosingEventArgs e)
{
if (bOK.Enabled) bOK_Click(sender, e);
else e.Cancel = true;
}
private void bOK_Click(object sender, EventArgs e)
{
optionsform.bwProgress.CancelAsync();
}
public void RecryptProgress(string[] args)
{
pbProgress.Value = Convert.ToInt16(args[0]);
lProgressValue.Text = args[1];
}
public void RecryptComplete()
{
Text = "Processing complete";
bOK.Enabled = true;
}
}
}