From 5696fad7101fa0a34d9625c457b65c3a637d12dc Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 28 Jul 2014 01:51:06 +0400 Subject: [PATCH] added indicator for implementations that support archive creation. --- AboutBox.xaml | 10 +++++++++- AboutBox.xaml.cs | 14 ++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/AboutBox.xaml b/AboutBox.xaml index 1f72f6de..f7fab6c4 100644 --- a/AboutBox.xaml +++ b/AboutBox.xaml @@ -27,11 +27,18 @@ IN THE SOFTWARE. xmlns:w="clr-namespace:Rnd.Windows" xmlns:s="clr-namespace:GARbro.GUI.Strings" xmlns:gr="clr-namespace:GameRes;assembly=GameRes" + xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" Title="{x:Static s:guiStrings.TextAboutTitle}" Height="306" Width="475" ResizeMode="NoResize" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" ShowInTaskbar="False" WindowStartupLocation="CenterOwner"> + + + + + + @@ -62,11 +69,12 @@ IN THE SOFTWARE. - + + diff --git a/AboutBox.xaml.cs b/AboutBox.xaml.cs index ad3ac006..1964fab7 100644 --- a/AboutBox.xaml.cs +++ b/AboutBox.xaml.cs @@ -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; + } + } }