/// <summary>
        /// Populates the view ViewModel.
        /// </summary>
        /// <returns>
        /// </returns>
        public override void HandleViewDataLoadEvent()
        {
            BaseCL.RoutineEntry("AttributeDetailViewModel");

            HLinkAttributeObject = CommonRoutines.GetHLinkParameter <HLinkAttributeModel>(BaseParamsHLink);

            if (HLinkAttributeObject.Valid)
            {
                AttributeObject = HLinkAttributeObject.DeRef;

                BaseModelBase = AttributeObject;

                // Get the Attribute Details
                BaseDetail.Add(new CardListLineCollection("Attribute Detail")
                {
                    new CardListLine("Type:", AttributeObject.GType),
                    new CardListLine("Value:", AttributeObject.GValue),
                });

                // Add Standard details
                BaseDetail.Add(CommonRoutines.GetModelInfoFormatted(AttributeObject));
            }

            return;
        }
        /// <summary>
        /// Gets the attribute collection.
        /// </summary>
        /// <param name="xmlData">
        /// The XML data.
        /// </param>
        /// <returns>
        /// </returns>
        private HLinkAttributeModelCollection GetAttributeCollection(XElement xmlData)
        {
            HLinkAttributeModelCollection t = new HLinkAttributeModelCollection
            {
                Title = "Attribute Collection"
            };
            // Run query
            var theERElement =
                from orElementEl
                in xmlData.Elements(ns + "attribute")
                select orElementEl;

            if (theERElement.Any())
            {
                // Load attribute object references
                foreach (XElement theLoadORElement in theERElement)
                {
                    AttributeModel newAttributeModel = new AttributeModel
                    {
                        GCitationReferenceCollection = GetCitationCollection(theLoadORElement),

                        GNoteModelReferenceCollection = GetNoteCollection(theLoadORElement),

                        Priv = GetPrivateObject(theLoadORElement),

                        GType = GetAttribute(theLoadORElement.Attribute("type")),

                        GValue = GetAttribute(theLoadORElement.Attribute("value")),
                    };

                    HLinkAttributeModel tt = new HLinkAttributeModel
                    {
                        DeRef = newAttributeModel
                    };

                    t.Add(tt);
                }
            }

            return(t);
        }