private void BuildDocumentTypeCache() { var typeLibrary = new DocumentTypeLibrary(); typeLibrary.Build(); }
public bool LoadMetaData(string configFile) { try { configFile = _textTransformation.Host.ResolvePath(configFile); if (!string.IsNullOrEmpty(configFile) && File.Exists(configFile)) { Directory.SetCurrentDirectory(Path.GetDirectoryName(configFile)); var documentTypeLibrary = new DocumentTypeLibrary(); TypeLib = documentTypeLibrary.Load(configFile); this.SetPropertyTypeDataType(TypeLib); DataGridTypeItems = this.BuildDataGridTypeItemList(TypeLib); } } catch (Exception) { TypeLib = null; } return TypeLib != null; }