Skip to content

Commit

Permalink
AppData.ShowValues -- but not used in Blazor app yet
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Mar 11, 2024
1 parent dffa241 commit 333254b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 12 additions & 1 deletion library/Models/FamilyData/AppData.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
using IRS;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text.Json.Serialization;

namespace Models;

public class AppData : IAppData
public class AppData : IAppData, INotifyPropertyChanged
{
protected void OnPropertyChanged([CallerMemberName] string? name = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
}
public event PropertyChangedEventHandler? PropertyChanged;

public FamilyData? FamilyData { get; set; }
public string? CurrentProfileName {get; set;}
public string? LastPageUri {get; set;}
public IRSData? IRSData {get; set;}
public string? EODHistoricalDataApiKey { get; set;}
public bool ShowValues { get{ return showValues; } set{ showValues = value; OnPropertyChanged(); } }
public int Year {get; set;}
[JsonIgnore] // no longer using as of 7/8/2023, stop saving.
public ImportResult? ImportResult { get; set; }
public bool ApplyStockSizeRules { get; set; }
public bool ApplyTaxEfficientPlacementRules { get; set; }
public bool AllowAfterTaxPercentage { get; set;}

private bool showValues;
}
1 change: 1 addition & 0 deletions library/Models/FamilyData/IAppData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public interface IAppData {
public string? LastPageUri {get; set;}
public IRSData? IRSData {get; set;}
public string? EODHistoricalDataApiKey { get; set;}
public bool ShowValues { get; set; }
public int Year {get; set;}
public ImportResult? ImportResult { get; set; }
public bool ApplyStockSizeRules { get; set; }
Expand Down
7 changes: 0 additions & 7 deletions library/Models/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,3 @@ public static List<Group<T, U>> Create(IEnumerable<T> collection, string itemsPr
return groups;
}
}

public class HoldingGroupInfo(string investmentOrderCategory)
{
public string InvestmentOrderCategory { get; private set; } = investmentOrderCategory;
public double? Value { get; set; }
}

0 comments on commit 333254b

Please sign in to comment.