MainWindow.xaml.cs aktualisiert

This commit is contained in:
Kevin Dietze 2025-05-07 12:07:09 +02:00
parent 6d0ba0c025
commit 2533e7b7d8

View File

@ -50,7 +50,7 @@ namespace EuroToDollarConverter
{
MessageBox.Show("Bitte wählen Sie eine Währung aus.");
return;
}
}
// Den angezeigten Text der Währung auslesen
string Währung = Item.Content.ToString();
@ -80,7 +80,7 @@ namespace EuroToDollarConverter
double result = euro * rate;
// Ergebnis mit 2 Nachkommastellen anzeigen
dollarBox.Text = result.ToString("F2");
dollarBox.Text = $"{result:F2}";
}
}
}