Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }