コード例 #1
0
        /// <summary>
        /// Update equipment with last data
        /// </summary>
        public override void Update(object data, string cmdType)
        {
            base.Update(data, cmdType);

            Magnet curData = data as Magnet;

            this.NoClose = curData.NoClose;
        }
コード例 #2
0
        /// <summary>
        /// Update equipment with last data
        /// </summary>
        public override void Update(object data)
        {
            Magnet curData = data as Magnet;

            if (curData.Voltage != default(int))
            {
                this.Voltage      = curData.Voltage;
                this.BatteryLevel = base.ParseVoltage(curData.Voltage);
            }

            this.Status  = curData.Status;
            this.NoClose = curData.NoClose;
        }