Copy file to clipboard
This commit is contained in:
@@ -5,5 +5,6 @@ namespace FileTime.App.Core.Services;
|
||||
public interface ISystemClipboardService
|
||||
{
|
||||
Task CopyToClipboardAsync(string text);
|
||||
Task<IEnumerable<FullName>> GetFiles();
|
||||
Task<IEnumerable<FullName>> GetFilesAsync();
|
||||
Task SetFilesAsync(IEnumerable<FullName> files);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class CopyFilesToClipboardCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "copy_to_clipboard";
|
||||
|
||||
public static readonly CopyFilesToClipboardCommand Instance = new();
|
||||
|
||||
private CopyFilesToClipboardCommand()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public sealed class CreateElement : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "create_element";
|
||||
public static CreateElement Instance { get; } = new();
|
||||
|
||||
private CreateElement()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public sealed class CreateElementCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "create_element";
|
||||
public static CreateElementCommand Instance { get; } = new();
|
||||
|
||||
private CreateElementCommand()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
}
|
||||
Reference in New Issue
Block a user