Command refactor

This commit is contained in:
2022-05-15 21:42:01 +02:00
parent 9a99aad030
commit f99f90783f
42 changed files with 544 additions and 217 deletions

View File

@@ -1,6 +1,6 @@
using System.Globalization;
using Avalonia.Data.Converters;
using FileTime.App.Core.Command;
using FileTime.App.Core.UserCommand;
namespace FileTime.GuiApp.Converters;
@@ -8,7 +8,7 @@ public class CommandToCommandNameConverter : IValueConverter
{
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if(value is not Command command) return value;
if(value is not IUserCommand command) return value;
//TODO: implement
return command.ToString();