-
Notifications
You must be signed in to change notification settings - Fork 0
/
SplashScreen.cs
74 lines (69 loc) · 1.77 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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GD
{
public partial class SplashScreen : Form
{
public SplashScreen()
{
InitializeComponent();
}
private void SplashScreen_Load(object sender, EventArgs e)
{
label1.Text = "";
label2.Text = "";
label3.Text = "";
label4.Text = "";
label5.Text = "";
label6.Text = "";
label1.BackColor = Color.Transparent;
label2.BackColor = Color.Transparent;
label3.BackColor = Color.Transparent;
label4.BackColor = Color.Transparent;
label5.BackColor = Color.Transparent;
label6.BackColor = Color.Transparent;
label1.ForeColor = Color.White;
label2.ForeColor = Color.White;
label3.ForeColor = Color.White;
label4.ForeColor = Color.White;
label5.ForeColor = Color.Red;
label5.Font = new Font(label5.Font, FontStyle.Underline);
label6.ForeColor = Color.LightGray;
SetAuthorText();
}
private async void SetAuthorText()
{
await Task.Run(() =>
{
Thread.Sleep(1000);
label1.Text = "NIKITA KRUZHIKIN";
Thread.Sleep(1000);
label2.Text = "AND";
Thread.Sleep(1000);
label3.Text = "OLEG SERGUSHIN";
Thread.Sleep(1000);
label4.Text = "PRESENTS";
Thread.Sleep(1000);
label5.Text = "Project 'AFCTNOEMAITT'";
Thread.Sleep(500);
label6.Text = "application for counting the number of e-mail addresses in the text";
});
Thread.Sleep(3000);
StartTheProgram();
}
private void StartTheProgram()
{
FindMailsInTheTextForm formFind = new FindMailsInTheTextForm();
formFind.Show();
this.Hide();
}
}
}