private void btnSave_Click(object sender, EventArgs e) { eCalibration.Save(visionPath + "\\" + visionFile + "\\Calibration"); eCalibrFindPattern.Save(visionPath + "\\" + visionFile + "\\CalibrationFindPattern"); eFindPattern.Save(visionPath + "\\" + visionFile + "\\FindPattern"); eFindLine_1.Save(visionPath + "\\" + visionFile + "\\FindLine_1"); eFindLine_2.Save(visionPath + "\\" + visionFile + "\\FindLine_2"); }
public void Save() { try { eCalibration.Save(visionPath + "\\" + visionFile + "\\" + fileName + "\\Calibration"); eCalibrFindPattern.Save(visionPath + "\\" + visionFile + "\\" + fileName + "\\CalibrationFindPattern"); eFindPattern.Save(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindPattern"); eFindCorner[CornerLine.Line_1].Save(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindLine_1"); eFindCorner[CornerLine.Line_2].Save(visionPath + "\\" + visionFile + "\\" + fileName + "\\FindLine_2"); } catch (EException exc) { StackFrame[] stackFrames = new StackTrace(true).GetFrames(); clsLogFile.LogTryCatch(stackFrames, exc.Message, true, true); } catch (Exception ex) { StackFrame[] stackFrames = new StackTrace(true).GetFrames(); clsLogFile.LogTryCatch(stackFrames, ex.Message, true, true); } }