using System;
using System.Globalization;
using System.Windows.Data;
using Filtration.Interface;

namespace Filtration.Converters
{
    class ActiveDocumentConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is IDocument)
                return value;

            return Binding.DoNothing;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is IDocument)
                return value;

            return Binding.DoNothing;
        }
    }
}
