EventHandler GetScriptMenuItemClickHandler(ScriptBase script) { var handler = new EventHandler((sender, e) => { var newInstance = scriptMgr.CreateScriptFromType(script.GetType()); scriptMgr.RunScript(newInstance); }); return(handler); }
EventHandler GetScriptMenuItemClickHandler(ScriptBase script) { var handler = new EventHandler((sender, e) => { var newInstance = scriptMgr.CreateScriptFromType(script.GetType()); scriptMgr.RunScript(newInstance); }); return(handler); }