Code cleanup.
This commit is contained in:
@@ -29,7 +29,6 @@ namespace TradeBlotter.ViewModels
|
||||
private String selectedAccount = Constants.CONST_ALL;
|
||||
private String selectedOperation;
|
||||
private RelayCommand refreshCommand;
|
||||
private bool useRealPrice = false;
|
||||
private bool includeCash = false;
|
||||
private bool busyIndicator = false;
|
||||
private double cashBalance = double.NaN;
|
||||
@@ -181,9 +180,7 @@ namespace TradeBlotter.ViewModels
|
||||
PortfolioTrades accountTrades = GetAccountTrades();
|
||||
foreach (PortfolioTrade portfolioTrade in accountTrades)
|
||||
{
|
||||
Price price = null;
|
||||
if (useRealPrice) price = PriceCache.GetInstance().GetLatestPrice(portfolioTrade.Symbol);
|
||||
if (null == price) price = PricingDA.GetPrice(portfolioTrade.Symbol);
|
||||
Price price = PricingDA.GetPrice(portfolioTrade.Symbol);
|
||||
totalExposure += price.Close * portfolioTrade.Shares;
|
||||
if (sectorIndustry.Equals("Sector"))
|
||||
{
|
||||
@@ -248,11 +245,6 @@ namespace TradeBlotter.ViewModels
|
||||
return sectorIndustryDataPointsContribution;
|
||||
}
|
||||
}
|
||||
public bool UseRealPrice
|
||||
{
|
||||
get { return useRealPrice; }
|
||||
set { useRealPrice = value; base.OnPropertyChanged("UseRealPrice"); }
|
||||
}
|
||||
public bool IncludeCash
|
||||
{
|
||||
get { return includeCash; }
|
||||
|
||||
Reference in New Issue
Block a user