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

@@ -8,17 +8,19 @@ public sealed class PasteCommand : IIdentifiableUserCommand
public const string PasteOverwriteCommandName = "paste_overwrite";
public const string PasteSkipCommandName = "paste_skip";
public static readonly PasteCommand Merge = new(PasteMode.Merge, PasteMergeCommandName);
public static readonly PasteCommand Overwrite = new(PasteMode.Overwrite, PasteOverwriteCommandName);
public static readonly PasteCommand Skip = new(PasteMode.Skip, PasteSkipCommandName);
public static readonly PasteCommand Merge = new(PasteMode.Merge, PasteMergeCommandName, "Paste (merge)");
public static readonly PasteCommand Overwrite = new(PasteMode.Overwrite, PasteOverwriteCommandName, "Paste (overwrite)");
public static readonly PasteCommand Skip = new(PasteMode.Skip, PasteSkipCommandName, "Paste (skip)");
public PasteMode PasteMode { get; }
private PasteCommand(PasteMode pasteMode, string commandName)
private PasteCommand(PasteMode pasteMode, string commandName, string title)
{
PasteMode = pasteMode;
UserCommandID = commandName;
Title = title;
}
public string UserCommandID { get; }
public string Title { get; }
}