Add CanInvoke
method to IResourceAction
.
This commit is contained in:
@@ -8,6 +8,9 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
public override string Name { get { return "Play"; } }
|
||||
public override int Priority { get { return -100; } }
|
||||
|
||||
public override bool CanInvoke(Uri uri, IChartDetail resource) {
|
||||
return true;
|
||||
}
|
||||
public override void Invoke(Uri uri, IChartDetail resource) {
|
||||
Settings.Default.LoadRuleset = Path.Combine(resource.RulesetId, ".umgr");
|
||||
Settings.Default.LoadRulesetConfig = resource.RulesetId + ".json";
|
||||
|
Reference in New Issue
Block a user