Fix format for pricing.
This commit is contained in:
@@ -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"); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user