-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgressForm.cs
More file actions
56 lines (51 loc) · 1.41 KB
/
ProgressForm.cs
File metadata and controls
56 lines (51 loc) · 1.41 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System.Windows.Forms;
namespace XShort
{
public partial class ProgressForm : Form
{
bool close = false;
public ProgressForm()
{
InitializeComponent();
circularProgressBar1.Text = "Loading...";
}
public void ChangeDisplay(int phase)
{
switch (phase)
{
case 1:
circularProgressBar1.Text = "Loading name";
return;
case 2:
circularProgressBar1.Text = "Loading path";
return;
case 3:
circularProgressBar1.Text = "Loading para";
return;
case 4:
circularProgressBar1.Text = "Saving...";
return;
case 5:
circularProgressBar1.Text = "Scanning...";
return;
default:
circularProgressBar1.Text = "Checking...";
return;
}
}
public void CloseForm()
{
close = true;
this.Close();
this.Dispose();
}
private void Form3_FormClosing(object sender, FormClosingEventArgs e)
{
if (close != true)
{
e.Cancel = true;
return;
}
}
}
}