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); }
public BxXmlFiles(BxRegistries registries) { _registries = registries; }
public BxXmlFiles() { _registries = BxSystemInfo.Instance.Regisries; }
public BxDUCenter(BxRegistries registries) { _registries = registries; }
public BxDUCenter() { _registries = BxSystemInfo.Instance.Regisries; }