public bool CutJob(string jobName, ref string errMsg) { try { state = GoSdkWrapper.GoSensor_CopyFile(go_sensor, jobName + ".job", "_live.job"); if (state != kStatus.kOK) { errMsg = string.Format("GoSensor_CopyFile Error:{0}", state); return(false); } return(true); } catch (Exception ex) { errMsg = string.Format("GoSensor_CopyFile Error:{0}", ex.Message); return(false); } }