public ScriptMethodViewModel(ScriptEntry2 scriptEntry, ScriptTypeViewModel parent) { if (parent == null) throw new ArgumentNullException("parent"); TypeParent = parent; AssemblyParent = TypeParent.Parent; this.scriptEntry = scriptEntry; RunScriptCommand = new AnonymousCommand(_ => OnRunScriptCommand()); CloseMicroThreadView = new AnonymousCommand(_ => MicroThread = null); }
public ScriptMethodViewModel(ScriptEntry2 scriptEntry, ScriptTypeViewModel parent) { if (parent == null) { throw new ArgumentNullException("parent"); } TypeParent = parent; AssemblyParent = TypeParent.Parent; this.scriptEntry = scriptEntry; RunScriptCommand = new AnonymousCommand(_ => OnRunScriptCommand()); CloseMicroThreadView = new AnonymousCommand(_ => MicroThread = null); }