added indicator for implementations that support archive creation.

This commit is contained in:
morkt
2014-07-28 01:51:06 +04:00
parent 9922955323
commit 5696fad710
2 changed files with 23 additions and 1 deletions

View File

@@ -208,4 +208,18 @@ namespace GARbro.GUI
return isVisible;
}
}
[ValueConversion(typeof(bool), typeof(string))]
class CanCreateConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return (bool)value ? "[r/w]" : "[r]";
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return false;
}
}
}