Exemple #1
0
        /// <summary>
        /// 接收标准组态信息
        /// </summary>
        public override void ReceiveStandardLinkageInfo()
        {
            byte[] receivedData = CurrentPackage;
            IEqualityComparer <Model.LinkageConfigStandard> c = new StandardLinkageInfoCompare();

            Model.LinkageConfigStandard linkageInfo = ParsePackageCD(receivedData);
            if (!StandardLinkageConfigList.Contains(linkageInfo, c))
            {
                StandardLinkageConfigList.Add(linkageInfo);
            }
        }
Exemple #2
0
        /// <summary>
        /// 接收控制器上传的标准组态信息
        /// Revision: 由abstract改为virtual,除8001外其余控制器的标准组态信息都相同
        /// </summary>
        public virtual void ReceiveStandardLinkageInfo()
        {
            byte[] receivedData = CurrentPackage;
            IEqualityComparer <Model.LinkageConfigStandard> c = new StandardLinkageInfoCompare();

            Model.LinkageConfigStandard linkageInfo = ParsePackageCD(receivedData);
            if (!StandardLinkageConfigList.Contains(linkageInfo, c))
            {
                StandardLinkageConfigList.Add(linkageInfo);

                UploadedStandardLinkageConfigAccumulatedAmount++;
                UpdateProcessBarStatusForUploadedStandardLinkageConfig();
            }
        }