/// <summary> /// 删除CNC程序 /// </summary> /// <param name="hubRead"></param> /// <returns></returns> public HubReadWriterResultModel DeleteProgram(HubReadWriterModel hubRead) { var res = new ProgramTransferHelper().DeleteProgramInCnc(flib, hubRead.Data[0].ToString()); return(new HubReadWriterResultModel() { Result = res, Error = res, Success = string.IsNullOrEmpty(res), SuccessTip = hubRead.SuccessTip, ErrorTip = hubRead.ErrorTip }); }
public HubReadWriterResultModel DownloadProgram(HubReadWriterModel hubRead) { string name = ""; var res = new ProgramTransferHelper().LocalUploadProgramFromCncToPc(flib, hubRead.Data[0].ToString(), hubRead.Data[1].ToString(), 0); return(new HubReadWriterResultModel() { Result = name, Error = res, Success = string.IsNullOrEmpty(res), SuccessTip = hubRead.SuccessTip, ErrorTip = hubRead.ErrorTip }); }