示例#1
0
        private DataRow20Group FindOrCreateRow20Group(string key)
        {
            if (_dictionary.ContainsKey(key))
            {
                return(_dictionary[key]);
            }

            var row20Group = new DataRow20Group();

            _dictionary[key] = row20Group;
            return(row20Group);
        }
示例#2
0
        private void AddRowToGroup(DataRow20Group group, DataRow20 row)
        {
            var isMasterRow = row.DataType == _config.MasterDataType;

            if (isMasterRow)
            {
                group.MasterRow = row;
            }
            else
            {
                group.Add(row);
            }
        }