private void btPause_Click(object sender, EventArgs e) { //if(_methodFlow.CurrWorkStatus == JFWorkStatus.AbortExit || // _methodFlow.CurrWorkStatus == JFWorkStatus.CommandExit || // _methodFlow.CurrWorkStatus == JFWorkStatus.ErrorExit || // _methodFlow.CurrWorkStatus == JFWorkStatus.ExceptionExit || // _methodFlow.CurrWorkStatus == JFWorkStatus.NormalEnd || // _methodFlow.CurrWorkStatus == JFWorkStatus.UnStart) //{ // MessageBox.Show("暂停操作失败,工作流当前未运行"); // return; //} JFWorkCmdResult ret = _methodFlow.Pause(2000); if (ret != JFWorkCmdResult.Success) { MessageBox.Show("暂停失败:ErrorCode = " + ret); } }