private void CreateTables(XElement parentElement) { foreach (var childElement in parentElement.Elements( )) { string tableName = childElement.Attribute("name").Value; TableKey table = Tables.GetOrAdd(tableName, ( string key ) => { return(new TableKey( ) { Name = tableName }); }); table.OrderValue = ushort.Parse(childElement.Attribute("order").Value); var parent = childElement.Attribute("parent").Value; if (!string.IsNullOrWhiteSpace(parent)) { table.Parent = Tables [parent]; } table.IsSequence = ReadIsSequence(childElement); table.IsMultiValue = ReadIsMultiValue(childElement); table.ParentElement = ReadParentElement(childElement); } }
private void Init( ) { PatientTable = GetTableInfo(PatientTableName); StudyTable = GetTableInfo(StudyTableName); SeriesTable = GetTableInfo(SeriesTableName); ObjectInstanceTable = GetTableInfo(ObjectInstanceTableName); }