formatowanie kodu

This commit is contained in:
2025-10-31 15:05:50 +01:00
parent 5996598d2a
commit 0f0a78954c
3 changed files with 12 additions and 13 deletions
+4 -4
View File
@@ -12,9 +12,9 @@ namespace Haftmittel
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is bool)
if (value is bool b)
{
if ((bool)value)
if (b)
{
return 1;
}
@@ -31,9 +31,9 @@ namespace Haftmittel
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value is double)
if (value is double d)
{
return ((double)value == 1);
return d == 1;
}
else
{