formatowanie kodu
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user