public void Execute() { Cursor.Current = Cursors.WaitCursor; TreeNode node = this.treeViewProject.SelectedNode; DefaultSettings settings = DefaultSettings.Instance; ProjectExecuteStatus log = new ProjectExecuteStatus(); log.Show(this); if ((node is ModuleTreeNode) || (node is ProjectTreeNode)) { ZeusModule module = node.Tag as ZeusModule; module.Execute(settings.ScriptTimeout, log); } else if (node is SavedObjectTreeNode) { SavedTemplateInput savedinput = node.Tag as SavedTemplateInput; savedinput.Execute(settings.ScriptTimeout, log); } log.Finished = true; log.BringToFront(); log.Activate(); Cursor.Current = Cursors.Default; }
private bool ExecuteModule(ZeusModule parent, string projectPath) { bool complete = false; ZeusModule m = FindModule(parent, projectPath); if (m != null) { complete = true; m.Execute(this._argmgr.Timeout, this._log); if (this._argmgr.InternalUseOnly) { foreach (string file in m.SavedFiles) { this._log.Write("[GENERATED_FILE]" + file); } } } return(complete); }