/// <summary> Constructor for a new instance of the Container_Info class </summary>
 public EAD_Transfer_Container_Info()
 {
     Did = new EAD_Transfer_Descriptive_Identification();
 }
        private EAD_Transfer_Descriptive_Identification ead_copy_did_to_transfer(Descriptive_Identification Source)
        {
            // If null, just return null
            if (Source == null)
                return null;

            // Create the main object, and copy over the simple string values
            EAD_Transfer_Descriptive_Identification returnObj = new EAD_Transfer_Descriptive_Identification
            {
                DAO = Source.DAO,
                DAO_Link = Source.DAO_Link,
                DAO_Title = Source.DAO_Title,
                Extent = Source.Extent,
                Unit_Date = Source.Unit_Date,
                Unit_Title = Source.Unit_Title
            };

            // Copy any information about parent containers
            if (Source.Container_Count > 0)
            {
                foreach (Parent_Container_Info parentInfo in Source.Containers)
                {
                    returnObj.Add_Container(parentInfo.Container_Type, parentInfo.Container_Title);
                }
            }

            return returnObj;
        }
Example #3
0
 /// <summary> Constructor for a new instance of the Description_of_Subordinate_Components class </summary>
 public EAD_Transfer_Desc_Sub_Components()
 {
     Containers = new List <EAD_Transfer_Container_Info>();
     Did        = new EAD_Transfer_Descriptive_Identification();
 }
 /// <summary> Constructor for a new instance of the Description_of_Subordinate_Components class </summary>
 public EAD_Transfer_Desc_Sub_Components()
 {
     Containers = new List<EAD_Transfer_Container_Info>();
     Did = new EAD_Transfer_Descriptive_Identification();
 }
 /// <summary> Constructor for a new instance of the Container_Info class </summary>
 public EAD_Transfer_Container_Info()
 {
     Did = new EAD_Transfer_Descriptive_Identification();
 }