Add CanInvoke method to IResourceAction.

This commit is contained in:
2023-12-20 00:06:57 +08:00
parent e1bb874943
commit c66b7da63b
7 changed files with 36 additions and 11 deletions

View File

@@ -11,6 +11,9 @@ namespace Cryville.Crtr.Browsing.Actions {
public string Name { get { return "Import"; } }
public int Priority { get { return 0; } }
public bool CanInvoke(Uri uri, IResourceMeta resource) {
throw new NotImplementedException();
}
public void Invoke(Uri uri, IResourceMeta resource) {
if (_destination.ImportFrom(uri))
Popup.Create("Import succeeded");