public void Update(IGTrading.Models.StockTickerDetails st) { this.Ask = st.Ask; this.Bid = st.Bid; this.Change = st.Change; this.DailyHigh = st.DailyHigh; this.DailyLow = st.DailyLow; this.DailyRange = st.DailyRange; this.EarningsPerShare = st.EarningsPerShare; this.EBITDA = st.EBITDA; this.LastTradeAmount = st.LastTradeAmount; this.LastTradeDate = st.LastTradeDate; this.LastTradeTime = st.LastTradeTime; this.LastUpdate = DateTime.Now; this.MarketCapitalization = st.MarketCapitalization; this.Name = st.Name; this.Open = st.Open; this.PERatio = st.PERatio; this.PercentAndChange = st.PercentAndChange; this.PercentChange = st.PercentChange; this.PreviousClose = st.PreviousClose; this.Range52Week = st.Range52Week; this.SharesOwned = st.SharesOwned; this.StockExchange = st.StockExchange; this.Symbol = st.Symbol; this.Volume = st.Volume; }
public StockTickerDetailsViewModel(IGTrading.Models.StockTickerDetails st) { Update(st); }