-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForm1.cs
More file actions
86 lines (84 loc) · 2.48 KB
/
Copy pathForm1.cs
File metadata and controls
86 lines (84 loc) · 2.48 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class baslangic_ekrani : Form
{
public baslangic_ekrani()
{
InitializeComponent();
}
private static int i = 0;
private void baslangic_ekrani_Load(object sender, EventArgs e)
{
zamanlayici.Start();
}
private void zamanlayici_Tick(object sender, EventArgs e)
{
i++;
label1.Text = "%" + i;
progressBar1.Value = i;
switch (i)
{
case 10:
{
progressBar1.ForeColor = Color.Red;
break;
}
case 20:
{
progressBar1.ForeColor = Color.Yellow;
break;
}
case 30:
{
progressBar1.ForeColor = Color.Green;
break;
}
case 40:
{
progressBar1.ForeColor = Color.Orange;
break;
}
case 50:
{
progressBar1.ForeColor = Color.Blue;
break;
}
case 60:
{
progressBar1.ForeColor = Color.Brown;
break;
}
case 70:
{
progressBar1.ForeColor = Color.Black;
break;
}
case 80:
{
progressBar1.ForeColor = Color.Pink;
break;
}
case 90:
{
progressBar1.ForeColor = Color.Purple;
break;
}
case 100:
{
progressBar1.ForeColor = Color.Violet;
break;
}
}
if (i == 100)
{
zamanlayici.Stop();
araba_kontrol a = new araba_kontrol();
a.Show();
Hide();
}
}
}
}