예제 #1
0
 public void Save()
 {
     if (FileSavePath != null)
     {
         AccessJosnSerializer.ObjectToJson(FileSavePath, this);
     }
 }
예제 #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);
        }
예제 #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);
        }
예제 #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()));
        }
예제 #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);
        }
예제 #6
0
 public override bool Save(string strpath)
 {
     if (AccessJosnSerializer.ObjectToJson(strpath, this))
     {
         FilePath = strpath;
         return(true);
     }
     return(false);
 }
예제 #7
0
        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);
            }
        }
예제 #8
0
 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);
     }
 }
예제 #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();
        }
예제 #10
0
 public override void Save(string strPath)
 {
     //AccessXmlSerializer.ObjectToXml(strPath, vision1dCodeParam);
     AccessJosnSerializer.ObjectToJson(strPath, this);
 }
예제 #11
0
 public static void Save()
 {
     AccessJosnSerializer.ObjectToJson(AppDomain.CurrentDomain.BaseDirectory + "SysFunConfig.json", sysFunParam);
 }
예제 #12
0
 public void Save(string strpath)
 {
     AccessJosnSerializer.ObjectToJson(@"E:\TorqueTest.json", recordData);
 }
예제 #13
0
 public void Save(string Path)
 {
     // dispTraces.Add("SecondTrace", new List<DispTraceBaseElement>() { dispTraces["FiristTrace"][0], dispTraces["FiristTrace"][1] });
     AccessJosnSerializer.ObjectToJson("D:\\123.json", dispTraces);
 }
예제 #14
0
 public void Save(string strFileSavePath)
 {
     FileSavePath = strFileSavePath;
     AccessJosnSerializer.ObjectToJson(FileSavePath, this);
 }