Fix format for pricing.

This commit is contained in:
2025-01-02 12:56:16 -05:00
parent b8282f54fd
commit d57d6ad623
5 changed files with 12 additions and 9 deletions

View File

@@ -224,7 +224,7 @@ namespace TradeBlotter.ViewModels
{
get
{
return Utility.FormatCurrency(trade.Price,3);
return Utility.FormatPrice(trade.Price);
}
set
{
@@ -261,7 +261,7 @@ namespace TradeBlotter.ViewModels
{
get
{
return Utility.FormatCurrency(trade.SellPrice);
return Utility.FormatPrice(trade.SellPrice);
}
set
{

View File

@@ -98,7 +98,8 @@ namespace TradeBlotter.ViewModels
}
public String SellPrice
{
get { return trade.IsClosed?Utility.FormatCurrency(trade.SellPrice):Constants.CONST_DASHES; }
// get { return trade.IsClosed?Utility.FormatCurrency(trade.SellPrice):Constants.CONST_DASHES; }
get { return trade.IsClosed?Utility.FormatPrice(trade.SellPrice):Constants.CONST_DASHES; }
set { trade.SellPrice = double.Parse(value); base.OnPropertyChanged("SellPrice"); }
}
public String Account
@@ -146,7 +147,8 @@ namespace TradeBlotter.ViewModels
{
get
{
return Utility.FormatCurrency(trade.LatestPrice);
return Utility.FormatPrice(trade.LatestPrice);
// return Utility.FormatCurrency(trade.LatestPrice);
}
set { trade.LatestPrice = double.Parse(value); base.OnPropertyChanged("CurrentPrice"); }
}