mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 13:23:58 +01:00
Enhance MainForm UI with improved button styles, layout adjustments, and updated font settings
This commit is contained in:
@@ -90,44 +90,54 @@ public class MainForm : Form
|
|||||||
Text = $"Saldo: €{mijnRekening.ControleerSaldo():N2}",
|
Text = $"Saldo: €{mijnRekening.ControleerSaldo():N2}",
|
||||||
Top = 20,
|
Top = 20,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 240,
|
||||||
Font = new Font("Arial", 12, FontStyle.Bold),
|
Font = new Font("Arial", 16, FontStyle.Bold),
|
||||||
ForeColor = Color.DarkGreen
|
ForeColor = Color.White,
|
||||||
|
BackColor = Color.FromArgb(0, 123, 255),
|
||||||
|
TextAlign = ContentAlignment.MiddleCenter
|
||||||
};
|
};
|
||||||
bedragTextBox = new TextBox()
|
bedragTextBox = new TextBox()
|
||||||
{
|
{
|
||||||
Top = 50,
|
Top = 60,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 240,
|
||||||
Font = new Font("Arial", 10),
|
Font = new Font("Arial", 14),
|
||||||
BackColor = Color.LightYellow
|
BackColor = Color.White,
|
||||||
|
ForeColor = Color.Black,
|
||||||
|
BorderStyle = BorderStyle.FixedSingle
|
||||||
};
|
};
|
||||||
stortenButton = new Button()
|
stortenButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Storten",
|
Text = "Storten",
|
||||||
Top = 80,
|
Top = 100,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 240,
|
||||||
Font = new Font("Arial", 10),
|
Font = new Font("Arial", 14),
|
||||||
BackColor = Color.LightBlue
|
BackColor = Color.FromArgb(0, 123, 255),
|
||||||
|
ForeColor = Color.White,
|
||||||
|
FlatStyle = FlatStyle.Flat
|
||||||
};
|
};
|
||||||
opnemenButton = new Button()
|
opnemenButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Opnemen",
|
Text = "Opnemen",
|
||||||
Top = 110,
|
Top = 140,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 240,
|
||||||
Font = new Font("Arial", 10),
|
Font = new Font("Arial", 14),
|
||||||
BackColor = Color.LightCoral
|
BackColor = Color.FromArgb(220, 53, 69),
|
||||||
|
ForeColor = Color.White,
|
||||||
|
FlatStyle = FlatStyle.Flat
|
||||||
};
|
};
|
||||||
transactieGeschiedenisButton = new Button()
|
transactieGeschiedenisButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Transactiegeschiedenis",
|
Text = "Transactiegeschiedenis",
|
||||||
Top = 140,
|
Top = 180,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 240,
|
||||||
Font = new Font("Arial", 10),
|
Font = new Font("Arial", 14),
|
||||||
BackColor = Color.LightGray
|
BackColor = Color.FromArgb(108, 117, 125),
|
||||||
|
ForeColor = Color.White,
|
||||||
|
FlatStyle = FlatStyle.Flat
|
||||||
};
|
};
|
||||||
|
|
||||||
stortenButton.Click += StortenButton_Click;
|
stortenButton.Click += StortenButton_Click;
|
||||||
@@ -141,9 +151,9 @@ public class MainForm : Form
|
|||||||
Controls.Add(transactieGeschiedenisButton);
|
Controls.Add(transactieGeschiedenisButton);
|
||||||
|
|
||||||
Text = "Bankrekening Beheer";
|
Text = "Bankrekening Beheer";
|
||||||
Size = new Size(300, 250);
|
Size = new Size(300, 300);
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
BackColor = Color.WhiteSmoke;
|
BackColor = Color.White;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StortenButton_Click(object sender, EventArgs e)
|
private void StortenButton_Click(object sender, EventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user