コード例 #1
0
        /// <summary> Method is called by the serializer after this item is unserialized </summary>
        public void PostUnSerialization()
        {
            Aggregations_By_Thematic_Heading.Clear();
            aggregationsByType.Clear();
            aggregationsByCode.Clear();
            allTypes.Clear();

            foreach (Item_Aggregation_Related_Aggregations thisAggr in All_Aggregations)
            {
                // Add this to the various dictionaries
                aggregationsByCode[thisAggr.Code] = thisAggr;
                if (!allTypes.Contains(thisAggr.Type))
                {
                    allTypes.Add(thisAggr.Type);
                }
                if (aggregationsByType.ContainsKey(thisAggr.Type))
                {
                    aggregationsByType[thisAggr.Type].Add(thisAggr);
                }
                else
                {
                    aggregationsByType[thisAggr.Type] = new List <Item_Aggregation_Related_Aggregations> {
                        thisAggr
                    };
                }
            }
        }
コード例 #2
0
 /// <summary> Clears the internal data for this code manager </summary>
 public void Clear()
 {
     Aggregations_By_Thematic_Heading.Clear();
     aggregationsByType.Clear();
     aggregationsByCode.Clear();
     allTypes.Clear();
     All_Aggregations.Clear();
 }