public void Run(ToolBlock tbk, bool isBeginRunTool) { if (isBeginRunTool) { BeginRunTool(tbk); } else { EndRunTool(tbk); } }
public void Run(ToolBlock ThisToolBlock, MvToolBase tool) { //this.ThisToolBlock = ThisToolBlock; //GetThisScriptTool(tool); ////在下面添加你的逻辑代码 }
void AttachJobWindowDisplayWnd(ToolBlock tbk) { tbk.DisplayAdapter = ThisTCPInvoker.ThisJobTool.DisplayAdapter; }
void BindingMainFormDisplayWndByIndex(ToolBlock tbk, int nIndex) { tbk.DisplayAdapter = (ThisTCPInvoker.ThisJobTool.DisplayWnds[nIndex] as MVDisplay).adapter; }
//调试全局脚本,正式部署时请将代码退回到步骤全局脚本中 public void GlobalScriptDebug(ToolBlock tbk, bool isBeginRunTool) { GlobaleScriptDebuger debuger1 = new GlobaleScriptDebuger(); debuger1.Run(tbk, isBeginRunTool); }
//调试脚本工具,每次只能调试一个脚本工具(正式部署时请将代码退回到脚本工具中) public void ScriptToolDebug(ToolBlock tbk, MvToolBase sTool) { ScriptToolDebuger debuger1 = new ScriptToolDebuger(); debuger1.Run(tbk, sTool); }
//结束运行工具 public void EndRunTool(ToolBlock tbk) { ThisToolBlock = tbk; //Tipper.Info = tool.Name + " 结束" ; //下面写逻辑代码 }
//运行工具前 public void BeginRunTool(ToolBlock tbk) { ThisToolBlock = tbk; //Tipper.Info = tool.Name + " 开始" ; //下面写逻辑代码 }