Exemple #1
0
 public void Save()
 {
     if (FileSavePath != null)
     {
         AccessJosnSerializer.ObjectToJson(FileSavePath, this);
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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()));
        }
Exemple #5
0
        public override void Save(string strPath)
        {
            string regionsavepath = strPath;

            //strPath = strPath + "\\" + m_strStepName + ".xml";
            //AccessXmlSerializer.ObjectToXml(strPath, visionShapParam);
            AccessJosnSerializer.ObjectToJson(strPath, this);
            //SaveRegions(regionsavepath);
        }
Exemple #6
0
 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);
     }
 }
Exemple #9
0
        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();
        }
Exemple #10
0
 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);
 }
Exemple #12
0
 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);
 }
Exemple #14
0
 public void Save(string strFileSavePath)
 {
     FileSavePath = strFileSavePath;
     AccessJosnSerializer.ObjectToJson(FileSavePath, this);
 }