コード例 #1
0
        /// <summary>
        /// Constructor, sets up the unit converter.
        /// </summary>
        public UnitConverter()
        {
            // Set up the tables we need
            m_SymbolTable = new SymbolTable();
            m_Units       = new UnitTable();
            m_UnitGroups  = new GroupTable();

            // Create an Xml document to hold the units file in.
            m_UnitsFile           = new XmlDocument();
            m_CurUnitsFileVersion = 0.0;

            m_CurUnitFileName = "";

            InitTables();
        }
コード例 #2
0
        /// <summary>
        /// Constructor, sets up the unit converter.
        /// </summary>
        public UnitConverter()
        {
            //Set up the tables we need
            m_SymbolTable = new SymbolTable();
            m_Units       = new UnitTable();
            m_UnitGroups  = new GroupTable();

            //Create an Xml document to hold the units file in.
            m_UnitsFile = new XmlDocument();
            m_CurUnitsFileVersion = 0.0;

            m_CurUnitFileName = "";

            InitTables();
        }