public ScriptUserControlViewModel(IScriptApplicationService scriptApplicationService) { this.scriptApplicationService = scriptApplicationService; ReloadScripts(); PlusCommand = new DelegateCommand(Plus); ReloadScriptsCommand = new DelegateCommand(ReloadScripts); AddScriptCommand = new DelegateCommand(AddScript); CancelAddScriptCommand = new DelegateCommand(CancelAddScript); SelectRowCommand = new DelegateCommand(SelectRow); DeleteScriptCommand = new DelegateCommand(DeleteScript); CancelEditScriptCommand = new DelegateCommand(CancelEditScript); }
public ScriptController(IScriptApplicationService scriptApplicationService) { this.scriptApplicationService = scriptApplicationService; }