protected void setScriptCommand(IScriptCommand value) { _scriptCommand = value; _command = new SimpleCommand() { CanExecuteDelegate = (p) => !(ScriptCommand is NullScriptCommand) && ScriptCommand.CanExecute(ParameterDicConverter.Convert(p)), ExecuteDelegate = (p) => ScriptRunner.RunScriptAsync(ParameterDicConverter.Convert(p), ScriptCommand) }; }