Item double click (run or open)

This commit is contained in:
2023-08-03 11:17:51 +02:00
parent 558a0a08bb
commit 3304d775f5
10 changed files with 66 additions and 77 deletions

View File

@@ -0,0 +1,23 @@
using FileTime.App.Core.ViewModels;
namespace FileTime.App.Core.UserCommand;
public class RunOrOpenCommand : IUserCommand
{
public IItemViewModel? Item { get; init; }
}
public sealed class IdentifiableRunOrOpenCommand : RunOrOpenCommand, IIdentifiableUserCommand
{
public const string CommandName = "run_or_open";
public static IdentifiableRunOrOpenCommand Instance { get; } = new();
private IdentifiableRunOrOpenCommand()
{
}
public string UserCommandID => CommandName;
public string Title => "Open or run";
}

View File

@@ -1,15 +0,0 @@
namespace FileTime.App.Core.UserCommand;
public sealed class RunOrOpenCommand : IIdentifiableUserCommand
{
public const string CommandName = "run_or_open";
public static RunOrOpenCommand Instance { get; } = new();
private RunOrOpenCommand()
{
}
public string UserCommandID => CommandName;
public string Title => "Open or run";
}