示例#1
0
        public void Init(string binDirectoryPath)
        {
            string rootPath = Path.Combine(binDirectoryPath, @"..\");

            //取PEOffice的整体系统配置
            InitProductsConfig(rootPath);

            //设置路径信息
            _systemPath = new BxSystemPath(binDirectoryPath, _culture);

            //加载注册信息
            _regisries = new BxRegistries(_systemPath);

            //加载单位制
            string sConfigFilePath = Path.Combine(_systemPath.GlobalConfigPath, @"BaseLayer\Unit\Unit.xml");
            string sParsedFilePath = Path.Combine(_systemPath.GlobalConfigPath, @"BaseLayer\Unit\ParsedUnit.xml");

            _baseUnitsCenter = new BxUnitsProvider(sConfigFilePath, sParsedFilePath);
            _baseUnitsCenter.Init();

            string unitSetFilePath = Path.Combine(_systemPath.CultureConfigPath, @"BaseLayer\UnitSet\UnitSet.xml");

            _unitsCenter = new BxSubSetUnitsCenter(_baseUnitsCenter);
            _unitsCenter.LoadUnitConfigFile(unitSetFilePath);
        }
示例#2
0
 public BxXmlFiles(BxRegistries registries)
 {
     _registries = registries;
 }
示例#3
0
 public BxXmlFiles()
 {
     _registries = BxSystemInfo.Instance.Regisries;
 }
示例#4
0
 public BxDUCenter(BxRegistries registries)
 {
     _registries = registries;
 }
示例#5
0
 public BxDUCenter()
 {
     _registries = BxSystemInfo.Instance.Regisries;
 }