Beispiel #1
0
 /// <summary>
 /// 停止异步的proces
 /// </summary>
 public void StopAsyncProcess()
 {
     CmdHelper.KillAsyncProcess();
 }
Beispiel #2
0
 /// <summary>
 /// 异步执行
 /// </summary>
 /// <param name="cmds"></param>
 /// <param name="outputDataReceived"></param>
 /// <param name="errorDataReceived"></param>
 private void ExecCmdAsync(List <string> cmds, DataReceivedEventHandler outputDataReceived, DataReceivedEventHandler errorDataReceived)
 {
     cmds = GetCmds(cmds);
     CmdHelper.ExecCmdAsync(cmds, outputDataReceived, errorDataReceived);
 }