-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFrmAula01.cs
51 lines (42 loc) · 1.3 KB
/
FrmAula01.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
namespace AulaAEDB01.Windows
{
public partial class FrmAula01 : Form
{
public FrmAula01()
{
InitializeComponent();
}
private void FrmPrincipal_Load(object sender, EventArgs e)
{
}
private void BtnMensagem_Click(object sender, EventArgs e)
{
if (lblMensagem.Text.Trim() == "")
{
lblMensagem.Text = "Hello Word!";
lblMensagem.BackColor = Color.Aqua;
}
else
{
lblMensagem.Text = "";
lblMensagem.BackColor = Color.White;
}
}
private void btnMudarCorFundoForm_Click(object sender, EventArgs e)
{
// this.BackColor = Color.White;
if (colorDialog1.ShowDialog() == DialogResult.OK)
{
this.BackColor = colorDialog1.Color;
}
}
private void FrmAula01_Activated(object sender, EventArgs e)
{
((FrmMenu)this.MdiParent).LblDisplay.Text = "Primeira maravilhosa aula";
}
private void FrmAula01_FormClosed(object sender, FormClosedEventArgs e)
{
((FrmMenu)this.MdiParent).LblDisplay.Text = "";
}
}
}