diff --git a/Convs/MainUpdateHostButtonContentConv.cs b/Convs/MainUpdateHostButtonContentConv.cs new file mode 100644 index 0000000..c5dfa26 --- /dev/null +++ b/Convs/MainUpdateHostButtonContentConv.cs @@ -0,0 +1,18 @@ +using System; +using System.Globalization; +using System.Windows.Data; +using Sheas_Cealer.Consts; + +namespace Sheas_Cealer.Convs; + +internal class MainUpdateHostButtonContentConv : IValueConverter +{ + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + bool isUpstreamHostUtd = (bool)value; + + return isUpstreamHostUtd ? MainConst.UpdateUpstreamHostButtonContent : $"{MainConst.UpdateUpstreamHostButtonContent} *"; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException(); +} \ No newline at end of file diff --git a/Wins/MainWin.xaml b/Wins/MainWin.xaml index 201dbb3..0a6f706 100644 --- a/Wins/MainWin.xaml +++ b/Wins/MainWin.xaml @@ -283,7 +283,7 @@ -