private void PopulateHeaders(bool initialPopulation)
        {
            var childBranches = new List<ChildBranchInfo>(1);

            IBranch tableBranch = null;
            if (initialPopulation)
            {
                tableBranch = new TableBranch(_mappingConceptualTypeMapping, _columns);
            }
            else
            {
                var locateData = LocateObject("TABLE", ObjectStyle.TrackingObject, 0);
                tableBranch = locateData.Row >= 0
                                  ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                  : new TableBranch(_mappingConceptualTypeMapping, _columns);
            }
            childBranches.Add(new ChildBranchInfo(tableBranch, Resources.MappingDetails_TablesHeader, "TABLE"));

            SetHeaderInfo(childBranches.ToArray(), _columns);
        }
Exemple #2
0
        private void PopulateHeaders(bool initialPopulation)
        {
            var childBranches = new List <ChildBranchInfo>(1);

            IBranch tableBranch = null;

            if (initialPopulation)
            {
                tableBranch = new TableBranch(_mappingConceptualTypeMapping, _columns);
            }
            else
            {
                var locateData = LocateObject("TABLE", ObjectStyle.TrackingObject, 0);
                tableBranch = locateData.Row >= 0
                                  ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                  : new TableBranch(_mappingConceptualTypeMapping, _columns);
            }
            childBranches.Add(new ChildBranchInfo(tableBranch, Resources.MappingDetails_TablesHeader, "TABLE"));

            SetHeaderInfo(childBranches.ToArray(), _columns);
        }