public void Save() { if (FileSavePath != null) { AccessJosnSerializer.ObjectToJson(FileSavePath, this); } }
public virtual void Save() { string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".xml"; AccessXmlSerializer.ObjectToXml(strPath, this); strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".json"; AccessJosnSerializer.ObjectToJson(strPath, this); }
public override void Save() { string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".xml"; // AccessXmlSerializer.ObjectToXml(strPath, vision1dCodeParam); strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".json"; AccessJosnSerializer.ObjectToJson(strPath, this); }
public virtual Object Read() { string strPath = ""; strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".json"; AccessJosnSerializer.ObjectToJson(strPath, this); strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".xml"; return(AccessXmlSerializer.XmlToObject(strPath, this.GetType())); }
public override void Save(string strPath) { string regionsavepath = strPath; //strPath = strPath + "\\" + m_strStepName + ".xml"; //AccessXmlSerializer.ObjectToXml(strPath, visionShapParam); AccessJosnSerializer.ObjectToJson(strPath, this); //SaveRegions(regionsavepath); }
public override bool Save(string strpath) { if (AccessJosnSerializer.ObjectToJson(strpath, this)) { FilePath = strpath; return(true); } return(false); }
public override void Save(string strPath) { try { //if (visionFitCircleParam != null) // AccessXmlSerializer.ObjectToXml(strPath, visionFitCircleParam); AccessJosnSerializer.ObjectToJson(strPath, this); } catch (Exception e) { _logger.Warn(m_strStepName + "保存失败:" + e.Message); } }
public override void Save() { try { //string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".xml"; //if (visionFitCircleParam != null) // AccessXmlSerializer.ObjectToXml(strPath, visionFitCircleParam); string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + m_strStepName + "\\" + m_strStepName + ".json"; AccessJosnSerializer.ObjectToJson(strPath, this); } catch (Exception e) { _logger.Warn(m_strStepName + "保存失败:" + e.Message); } }
public override void Save() { //string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".xml"; //if (strSavePath != "") // strPath = strSavePath + "\\" + m_strStepName + ".xml"; //AccessXmlSerializer.ObjectToXml(strPath, visionShapParam); string strPath = VisionMgr.GetInstance().CurrentVisionProcessDir + "\\" + m_strStepName + "\\" + m_strStepName + ".json"; if (strSavePath != "") { strPath = strSavePath + "\\" + m_strStepName + ".json"; } AccessJosnSerializer.ObjectToJson(strPath, this); // SaveRegions(); }
public override void Save(string strPath) { //AccessXmlSerializer.ObjectToXml(strPath, vision1dCodeParam); AccessJosnSerializer.ObjectToJson(strPath, this); }
public static void Save() { AccessJosnSerializer.ObjectToJson(AppDomain.CurrentDomain.BaseDirectory + "SysFunConfig.json", sysFunParam); }
public void Save(string strpath) { AccessJosnSerializer.ObjectToJson(@"E:\TorqueTest.json", recordData); }
public void Save(string Path) { // dispTraces.Add("SecondTrace", new List<DispTraceBaseElement>() { dispTraces["FiristTrace"][0], dispTraces["FiristTrace"][1] }); AccessJosnSerializer.ObjectToJson("D:\\123.json", dispTraces); }
public void Save(string strFileSavePath) { FileSavePath = strFileSavePath; AccessJosnSerializer.ObjectToJson(FileSavePath, this); }