Pull down IResourceDestination.
This commit is contained in:
@@ -3,8 +3,8 @@ using System;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.Actions {
|
||||
internal class ImportResourceAction : IResourceAction {
|
||||
readonly IResourceManager _destination;
|
||||
public ImportResourceAction(IResourceManager destination) {
|
||||
readonly IResourceDestination _destination;
|
||||
public ImportResourceAction(IResourceDestination destination) {
|
||||
_destination = destination;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
public int Priority { get { return 0; } }
|
||||
|
||||
public bool CanInvoke(Uri uri, IResourceMeta resource) {
|
||||
throw new NotImplementedException();
|
||||
return _destination.CanImport(uri);
|
||||
}
|
||||
public void Invoke(Uri uri, IResourceMeta resource) {
|
||||
if (_destination.ImportFrom(uri))
|
||||
|
Reference in New Issue
Block a user