/// <summary> /// Populates the view ViewModel. /// </summary> /// <returns> /// Task. /// </returns> public override void HandleViewDataLoadEvent() { HLinkFamilyModel HLinkFamily = CommonRoutines.GetHLinkParameter <HLinkFamilyModel>(BaseParamsHLink); FamilyObject = HLinkFamily.DeRef; if (!(FamilyObject is null)) { BaseModelBase = FamilyObject; BaseTitleIcon = Constants.IconFamilies; // Get basic details BaseDetail.Add(new CardListLineCollection("Family Detail") { new CardListLine("Family Display Name:", FamilyObject.ToString()), new CardListLine("Family Relationship:", FamilyObject.GFamilyRelationship), new CardListLine("Father Name:", FamilyObject.GFather.DeRef.GPersonNamesCollection.GetPrimaryName.DeRef.FullName), new CardListLine("Mother Name:", FamilyObject.GMother.DeRef.GPersonNamesCollection.GetPrimaryName.DeRef.FullName), new CardListLine("Date:", FamilyObject.GDate.LongDate), }); // Add Model details BaseDetail.Add(DV.FamilyDV.GetModelInfoFormatted(FamilyObject)); // Add parent link BaseDetail.Add(new HLinkParentLinkModel { DeRef = localFamilyModel, }); } }