mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 11:06:59 +01:00
Format saldo display in MainForm to include currency symbol and two decimal places
This commit is contained in:
@@ -87,7 +87,7 @@ public class MainForm : Form
|
|||||||
|
|
||||||
saldoLabel = new Label()
|
saldoLabel = new Label()
|
||||||
{
|
{
|
||||||
Text = $"Saldo: {mijnRekening.ControleerSaldo()}",
|
Text = $"Saldo: €{mijnRekening.ControleerSaldo():N2}",
|
||||||
Top = 20,
|
Top = 20,
|
||||||
Left = 20,
|
Left = 20,
|
||||||
Width = 200,
|
Width = 200,
|
||||||
@@ -152,7 +152,7 @@ public class MainForm : Form
|
|||||||
{
|
{
|
||||||
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
||||||
mijnRekening.Storten(bedrag);
|
mijnRekening.Storten(bedrag);
|
||||||
saldoLabel.Text = $"Saldo: {mijnRekening.ControleerSaldo()}";
|
saldoLabel.Text = $"Saldo: €{mijnRekening.ControleerSaldo():N2}";
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -166,7 +166,7 @@ public class MainForm : Form
|
|||||||
{
|
{
|
||||||
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
decimal bedrag = decimal.Parse(bedragTextBox.Text);
|
||||||
mijnRekening.Opnemen(bedrag);
|
mijnRekening.Opnemen(bedrag);
|
||||||
saldoLabel.Text = $"Saldo: {mijnRekening.ControleerSaldo()}";
|
saldoLabel.Text = $"Saldo: €{mijnRekening.ControleerSaldo():N2}";
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Bankrekening")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Bankrekening")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0c4f18e28032dc0aeac89bd06f9ff78b3a305fc9")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5a626eeb3777df55888653eea912f39805fbc8df")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("Bankrekening")]
|
[assembly: System.Reflection.AssemblyProductAttribute("Bankrekening")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("Bankrekening")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("Bankrekening")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
46fb88996bb966b8e5e222448b7604d44cd454030c0bdebbb4b68a31dafe7fdc
|
7bfb2d13dc0de83b2e778f4f94aaa47a55a64913230d3cfd5d001160814a5f0c
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
{"documents":{"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\*":"https://raw.githubusercontent.com/Alvin-Zilverstand/ict-algemeen-opdrachten/0c4f18e28032dc0aeac89bd06f9ff78b3a305fc9/*"}}
|
{"documents":{"C:\\Users\\steen\\Desktop\\Alvin\\ict-algemeen-opdrachten\\*":"https://raw.githubusercontent.com/Alvin-Zilverstand/ict-algemeen-opdrachten/5a626eeb3777df55888653eea912f39805fbc8df/*"}}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user