a lot of work

This commit is contained in:
2025-11-15 17:17:52 +01:00
parent 336b6ad1fd
commit b9ddc20b7d
42 changed files with 1453 additions and 3346 deletions

View File

@@ -0,0 +1,20 @@
using System.Collections;
using System.Globalization;
using Avalonia.Data.Converters;
namespace ModpackUpdater.Apps.Manager.Utils;
public class DictionaryValueConverter : IValueConverter
{
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (parameter is IDictionary dict && value != null && dict.Contains(value))
return dict[value];
return value?.ToString() ?? string.Empty;
}
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotSupportedException();
}
}