Skip to content

Commit

Permalink
add FamilyData.Snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Apr 16, 2024
1 parent 89beb26 commit ac20e68
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 122 deletions.
5 changes: 5 additions & 0 deletions library/Models/FamilyData/FamilyData.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using DocumentFormat.OpenXml.Office2013.WebExtension;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.IO;
Expand Down Expand Up @@ -26,6 +28,7 @@ public FamilyData(IAppData appData)
Questions = [];
RetirementData = new();
EmergencyFund = new();
Snapshots = [];

People.Add(new Person() { Identifier = "person 1", FamilyData = this, PersonIndex = 0 });
People.Add(new Person() { Identifier = "person 2", FamilyData = this, PersonIndex = 1 });
Expand All @@ -46,6 +49,8 @@ public void SetBackPointers()
EmergencyFund.SetBackPointer(this);
}

public ObservableCollection<Snapshot> Snapshots { get; set; }

[JsonIgnore]
public double PercentTotal { get; set; }

Expand Down
Loading

0 comments on commit ac20e68

Please sign in to comment.