Exemplo n.º 1
0
        //private Hashtable UnitsValue
        //{
        //    get { return ValuesTable; }
        //}

        public int GetUnitValue(string _unitName)
        {
            int temp;

            try
            {
                temp = (int)ValuesTable[_unitName];
            }
            catch
            {
                Console.WriteLine("GetUnitValue {0} from Reg{1} failed.", _unitName, RegAddress.ToString("X"));
                return(-1);
            }
            return(temp);
        }