uppercasing of user entered tickers

This commit is contained in:
mgroves 2011-02-26 11:30:41 -05:00
parent 9f49dbc187
commit 4b3f252a38

View file

@ -130,9 +130,9 @@ namespace MonoStockPortfolio.Activites
positionToSave = new Position(); positionToSave = new Position();
} }
positionToSave.Shares = decimal.Parse(SharesTextBox.Text.ToString()); positionToSave.Shares = decimal.Parse(SharesTextBox.Text);
positionToSave.PricePerShare = decimal.Parse(PriceTextBox.Text.ToString()); positionToSave.PricePerShare = decimal.Parse(PriceTextBox.Text);
positionToSave.Ticker = TickerTextBox.Text.ToString(); positionToSave.Ticker = TickerTextBox.Text.ToUpper();
positionToSave.ContainingPortfolioID = ThisPortfolioId; positionToSave.ContainingPortfolioID = ThisPortfolioId;
return positionToSave; return positionToSave;
} }