Restructuration
This commit is contained in:
15
Converter/NegateBoolean.cs
Normal file
15
Converter/NegateBoolean.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace Hermes.Converter {
|
||||
class NegateBoolean : IValueConverter {
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
return !(bool) value;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
return !(bool) value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user