summaryrefslogtreecommitdiff
path: root/Gestor.Application/Converters/NullToTrueConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Application/Converters/NullToTrueConverter.cs')
-rw-r--r--Gestor.Application/Converters/NullToTrueConverter.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/Gestor.Application/Converters/NullToTrueConverter.cs b/Gestor.Application/Converters/NullToTrueConverter.cs
deleted file mode 100644
index c75c2d5..0000000
--- a/Gestor.Application/Converters/NullToTrueConverter.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Globalization;
-using System.Windows.Data;
-using System.Windows.Markup;
-
-namespace Gestor.Application.Converters
-{
- public class NullToTrueConverter : MarkupExtension, IValueConverter
- {
- public NullToTrueConverter()
- {
- }
-
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- {
- return true;
- }
- return (bool)value;
- }
-
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- {
- return true;
- }
- return (bool)value;
- }
-
- public override object ProvideValue(IServiceProvider serviceProvider)
- {
- return this;
- }
- }
-} \ No newline at end of file