-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashScreen.cs
102 lines (83 loc) · 2.21 KB
/
SplashScreen.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class SplashScreen : Form
{
public SplashScreen()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{/*
rectangleShape2.Width += 5;
if (rectangleShape2.Width >= 670)
{
timer1.Stop();
MessageBox.Show("ok");
}*/
}
private void timer2_Tick(object sender, EventArgs e)
{
label2.Top -= 5;
if (label2.Top <= 75)
{
timer2.Stop();
timer5.Start();
}
}
private void timer5_Tick(object sender, EventArgs e)
{
label3.Top -= 5;
if (label3.Top <= 75)
{
timer5.Stop();
timer6.Start();
}
}
private void timer6_Tick(object sender, EventArgs e)
{
label5.Top -= 5;
if (label5.Top <= 80)
{
timer6.Stop();
timer4.Start();
}
}
private void ProgressbarTimer_Tick(object sender, EventArgs e)
{
bunifuProgressBar1.Value += 1;
if (bunifuProgressBar1.Value == 100)
{
ProgressbarTimer.Stop();
Login l = new Login();
this.Hide();
l.Show();
}
}
private void timer4_Tick(object sender, EventArgs e)
{
/* label4.Top += 5;
if (label4.Top >= 230)
{
timer4.Stop();
}*/
}
private void timer7_Tick(object sender, EventArgs e)
{
this.LoadingLabel.Visible = !this.LoadingLabel.Visible;
}
private void SplashScreen_Load(object sender, EventArgs e)
{
timer7.Interval = 250;
timer7.Start();
}
}
}