using Avalonia.Data.Converters; using Sheas_Cealer_Nix.Consts; using System; using System.Globalization; namespace Sheas_Cealer_Nix.Convs; internal class MainUpdateHostButtonContentConv : IValueConverter { public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) { bool isUpstreamHostUtd = (bool)value; return MainConst.UpdateUpstreamHostButtonContent + (isUpstreamHostUtd ? string.Empty : " *"); } public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotImplementedException(); }