Enhance MainForm UI with improved colors and layout adjustments

This commit is contained in:
vista-man
2025-01-27 19:09:31 +01:00
parent 0c4f18e280
commit 5a626eeb37
17 changed files with 17 additions and 47 deletions

View File

@@ -91,14 +91,16 @@ public class MainForm : Form
Top = 20,
Left = 20,
Width = 200,
Font = new Font("Arial", 12, FontStyle.Bold)
Font = new Font("Arial", 12, FontStyle.Bold),
ForeColor = Color.DarkGreen
};
bedragTextBox = new TextBox()
{
Top = 50,
Left = 20,
Width = 200,
Font = new Font("Arial", 10)
Font = new Font("Arial", 10),
BackColor = Color.LightYellow
};
stortenButton = new Button()
{
@@ -106,7 +108,8 @@ public class MainForm : Form
Top = 80,
Left = 20,
Width = 200,
Font = new Font("Arial", 10)
Font = new Font("Arial", 10),
BackColor = Color.LightBlue
};
opnemenButton = new Button()
{
@@ -114,7 +117,8 @@ public class MainForm : Form
Top = 110,
Left = 20,
Width = 200,
Font = new Font("Arial", 10)
Font = new Font("Arial", 10),
BackColor = Color.LightCoral
};
transactieGeschiedenisButton = new Button()
{
@@ -122,7 +126,8 @@ public class MainForm : Form
Top = 140,
Left = 20,
Width = 200,
Font = new Font("Arial", 10)
Font = new Font("Arial", 10),
BackColor = Color.LightGray
};
stortenButton.Click += StortenButton_Click;
@@ -138,6 +143,7 @@ public class MainForm : Form
Text = "Bankrekening Beheer";
Size = new Size(300, 250);
StartPosition = FormStartPosition.CenterScreen;
BackColor = Color.WhiteSmoke;
}
private void StortenButton_Click(object sender, EventArgs e)
@@ -172,9 +178,11 @@ public class MainForm : Form
{
var transactieGeschiedenis = mijnRekening.GetTransactieGeschiedenis();
string geschiedenis = "Transactiegeschiedenis:\n";
geschiedenis += "Datum\t\tBeschrijving\t\tBedrag\n";
geschiedenis += "---------------------------------------------\n";
foreach (var transactie in transactieGeschiedenis)
{
geschiedenis += $"{transactie.Datum}: {transactie.Beschrijving} - {transactie.Bedrag:C}\n";
geschiedenis += $"{transactie.Datum}\t{transactie.Beschrijving}\t\t{transactie.Bedrag:C}\n";
}
MessageBox.Show(geschiedenis);
}

View File

@@ -1,23 +0,0 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Bankrekening/1.0.0": {
"runtime": {
"Bankrekening.dll": {}
}
}
}
},
"libraries": {
"Bankrekening/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

View File

@@ -1,15 +0,0 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Bankrekening")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+eaaf39d0c92d3e661fdbd63b97c63ea70e57aae1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0c4f18e28032dc0aeac89bd06f9ff78b3a305fc9")]
[assembly: System.Reflection.AssemblyProductAttribute("Bankrekening")]
[assembly: System.Reflection.AssemblyTitleAttribute("Bankrekening")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
570f059670e381a36f19d47dad73e3c3996ea009c5141deac1b64e5e409a6da8
46fb88996bb966b8e5e222448b7604d44cd454030c0bdebbb4b68a31dafe7fdc

View File

@@ -1 +1 @@
{"documents":{"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\*":"https://raw.githubusercontent.com/Alvin-Zilverstand/ict-algemeen-opdrachten/eaaf39d0c92d3e661fdbd63b97c63ea70e57aae1/*"}}
{"documents":{"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\*":"https://raw.githubusercontent.com/Alvin-Zilverstand/ict-algemeen-opdrachten/0c4f18e28032dc0aeac89bd06f9ff78b3a305fc9/*"}}