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

            IBranch assocSetBranch = null;
            if (initialPopulation)
            {
                assocSetBranch = new AssociationSetBranch(_mappingAssociation, _columns);
            }
            else
            {
                var locateData = LocateObject("ASSOCIATION", ObjectStyle.TrackingObject, 0);
                assocSetBranch = locateData.Row >= 0
                                     ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                     : new AssociationSetBranch(_mappingAssociation, _columns);
            }
            childBranches.Add(new ChildBranchInfo(assocSetBranch, Resources.MappingDetails_AssociationHeader, "ASSOCIATION"));

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

            IBranch assocSetBranch = null;

            if (initialPopulation)
            {
                assocSetBranch = new AssociationSetBranch(_mappingAssociation, _columns);
            }
            else
            {
                var locateData = LocateObject("ASSOCIATION", ObjectStyle.TrackingObject, 0);
                assocSetBranch = locateData.Row >= 0
                                     ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                     : new AssociationSetBranch(_mappingAssociation, _columns);
            }
            childBranches.Add(new ChildBranchInfo(assocSetBranch, Resources.MappingDetails_AssociationHeader, "ASSOCIATION"));

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