public static void Save()
        {
            SerializableHelper <HardwareOrgHelper> helper = new SerializableHelper <HardwareOrgHelper>(HardwareOrgHelper.Instance);

            helper.JsonSerialize(Variable.sPath_Configure + "//机械校验.json"
                                 );
        }
コード例 #2
0
        private void SaveTotal(CountClassification count, string path, int hour)
        {
            SerializableHelper <CountClassification> helper = new SerializableHelper <CountClassification>(count);

            helper.JsonSerialize($"{path}//{hour}.json");
        }
コード例 #3
0
        public static void Save()
        {
            SerializableHelper <PressSensorHelper> helper = new SerializableHelper <PressSensorHelper>(PressSensorHelper.Instance);

            helper.JsonSerialize(Variable.sPath_Configure + "PressSensor.json");
        }
コード例 #4
0
        public static void Save()
        {
            SerializableHelper <List <ServiceItem> > helper = new SerializableHelper <List <ServiceItem> >(SerivceMonitorHelper.Instance.MonitorList);

            helper.JsonSerialize(Variable.sPath_Configure + "耗材管控.cfg");
        }
        public static void Save(MylarLabel label)
        {
            SerializableHelper <MylarLabel> helper = new SerializableHelper <MylarLabel>(label);

            helper.JsonSerialize(PathDefine.sPathLabel + $"{label.LabelName}.json");
        }
コード例 #6
0
        public static void Save()
        {
            SerializableHelper <AxisDefine> helper = new SerializableHelper <AxisDefine>(AxisDefine.Instance);

            helper.JsonSerialize(PathDefine.sPathAxis + "axis.json");
        }
        public static void Save()
        {
            SerializableHelper <Dictionary <uint, NozzleOffsetShceme> > helper = new SerializableHelper <Dictionary <uint, NozzleOffsetShceme> >(Items);

            helper.JsonSerialize("./Configure/NozzleOffsetItem.json");
        }
コード例 #8
0
        public static void Save(string path, SuckConfig config)
        {
            SerializableHelper <SuckConfig> helper = new SerializableHelper <SuckConfig>(config);

            helper.JsonSerialize(path);
        }
        public static void Save()
        {
            SerializableHelper <IODefine> helper = new SerializableHelper <IODefine>(IODefine.Instance);

            helper.JsonSerialize(PathDefine.sPathIO + "IO定义.json");
        }
コード例 #10
0
        public static void Save()
        {
            SerializableHelper <HardwareOrgHelper> helper = new SerializableHelper <HardwareOrgHelper>(HardwareOrgHelper.Instance);

            helper.JsonSerialize(PathDefine.sPathHardware + "机械校验.json");
        }
コード例 #11
0
        public static void Save()
        {
            SerializableHelper <FeederDefine> helper = new SerializableHelper <FeederDefine>(FeederDefine.Instance);

            helper.JsonSerialize(PathDefine.sPathConfigure + "Feeder.json");
        }
コード例 #12
0
        /// <summary>
        /// 保存Feeder信息,并自动更新到Feeder 上
        /// </summary>
        /// <param name="feederConfig"></param>
        public void SaveFeederConfig(FeederConfig feederConfig)
        {
            SerializableHelper <FeederConfig> helper = new SerializableHelper <FeederConfig>(feederConfig);

            helper.JsonSerialize(PathDefine.sPathFeeder + $"{CommonHelper.GetEnumDescription(typeof(Module),feederConfig.Module)}//{feederConfig.FeederName}.json");
        }
コード例 #13
0
        public static void Save()
        {
            SerializableHelper <PressHelper> helper = new SerializableHelper <PressHelper>(PressHelper.Instance);

            helper.JsonSerialize(PathDefine.sPressConfigure + "PressConfig.json");
        }
        public static void Save()
        {
            SerializableHelper <SystemConfig> helper = new SerializableHelper <SystemConfig>(SystemConfig.Instance);

            helper.JsonSerialize(PathDefine.sPathConfigure + "System.json");
        }
        public static void Save()
        {
            SerializableHelper <CameraDefine> helper = new SerializableHelper <CameraDefine>(CameraDefine.Instance);

            helper.JsonSerialize(PathDefine.sPathCamera + "Camera.json");
        }