Пример #1
0
        private void PopulateHeaders(bool initialPopulation)
        {
            var childBranches = new List<ChildBranchInfo>(1);

            IBranch modificationFunctionBranch = null;
            if (initialPopulation)
            {
                modificationFunctionBranch = new ModificationFunctionBranch(_mappingFunctionTypeMapping, _columns);
            }
            else
            {
                var locateData = LocateObject("FUNCTION", ObjectStyle.TrackingObject, 0);
                modificationFunctionBranch = locateData.Row >= 0
                                                 ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                                 : new ModificationFunctionBranch(_mappingFunctionTypeMapping, _columns);
            }
            childBranches.Add(new ChildBranchInfo(modificationFunctionBranch, Resources.MappingDetails_FunctionsHeader, "FUNCTION"));

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

            IBranch modificationFunctionBranch = null;

            if (initialPopulation)
            {
                modificationFunctionBranch = new ModificationFunctionBranch(_mappingFunctionTypeMapping, _columns);
            }
            else
            {
                var locateData = LocateObject("FUNCTION", ObjectStyle.TrackingObject, 0);
                modificationFunctionBranch = locateData.Row >= 0
                                                 ? GetObject(locateData.Row, 0, ObjectStyle.ExpandedBranch) as IBranch
                                                 : new ModificationFunctionBranch(_mappingFunctionTypeMapping, _columns);
            }
            childBranches.Add(new ChildBranchInfo(modificationFunctionBranch, Resources.MappingDetails_FunctionsHeader, "FUNCTION"));

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