Title for identifyable commands

This commit is contained in:
2023-07-29 15:38:50 +02:00
parent fd095df1bb
commit 604294fd2a
38 changed files with 122 additions and 110 deletions

View File

@@ -2,22 +2,28 @@ using FileTime.App.Core.Models.Enums;
namespace FileTime.App.Core.UserCommand;
public class PasteFilesFromClipboardCommand : IIdentifiableUserCommand
public sealed class PasteFilesFromClipboardCommand : IIdentifiableUserCommand
{
public const string PasteMergeCommandName = "paste_clipboard_merge";
public const string PasteOverwriteCommandName = "paste_clipboard_overwrite";
public const string PasteSkipCommandName = "paste_clipboard_skip";
public static readonly PasteFilesFromClipboardCommand Merge = new(PasteMode.Merge, PasteMergeCommandName);
public static readonly PasteFilesFromClipboardCommand Overwrite = new(PasteMode.Overwrite, PasteOverwriteCommandName);
public static readonly PasteFilesFromClipboardCommand Skip = new(PasteMode.Skip, PasteSkipCommandName);
public static readonly PasteFilesFromClipboardCommand Merge
= new(PasteMode.Merge, PasteMergeCommandName, "Paste from clipboard (merge)");
public static readonly PasteFilesFromClipboardCommand Overwrite
= new(PasteMode.Overwrite, PasteOverwriteCommandName, "Paste from clipboard (overwrite)");
public static readonly PasteFilesFromClipboardCommand Skip
= new(PasteMode.Skip, PasteSkipCommandName, "Paste from clipboard (skip)");
public PasteMode PasteMode { get; }
private PasteFilesFromClipboardCommand(PasteMode pasteMode, string commandName)
private PasteFilesFromClipboardCommand(PasteMode pasteMode, string commandName, string title)
{
PasteMode = pasteMode;
UserCommandID = commandName;
Title = title;
}
public string UserCommandID { get; }
public string Title { get; }
}