Exemplo n.º 1
0
        /// <summary>
        /// This method is used to populate the display item's description and
        /// value fields.  Note that to populate the value field, the meter will be
        /// interrogated to retrieve the current value of the item being displayed.
        /// </summary>
        /// <param name="device"></param>
        /// <remarks >
        /// MM/DD/YY who Version Issue# Description
        /// -------- --- ------- ------ ---------------------------------------
        /// 12/15/06 mah 8.00.00  N/A   Created
        /// </remarks>
        public void ReadCurrentValue(SCSDevice device)
        {
            if (Description.Length == 0)
            {
                Description = device.GetDisplayItemDescription(this);
            }

            // Next go ahead and retrieve the current value for the display
            // item from the meter

            GetDisplayItemValue(ref device);
        }