Added untracked files

This commit is contained in:
Ben
2015-07-02 17:57:43 +01:00
parent c3d11da155
commit 0bc3cac585
19 changed files with 770 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Globalization;
using System.Windows.Data;
using Filtration.ObjectModel.BlockItemTypes;
using Filtration.ObjectModel.Enums;
using Filtration.ObjectModel.Extensions;
namespace Filtration.ThemeEditor.Converters
{
public class ThemeComponentTypeToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
{
return string.Empty;
}
var type = (ThemeComponentType) value;
return type.GetAttributeDescription();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}