private void GetQuote(object sender, RoutedEventArgs e)
        {
            Thread.Sleep(4000);
            String tickerSymbol = StockTickerTextBox.Text;

            YahooQuotesClient client = new YahooQuotesClient();
            StockQuote sq = client.GetQuoteForStockSymbol(tickerSymbol);

            LastTradePrice.Content = sq.LastTradePrice;
            TradeDate.Content = sq.DateOfTrade;
            LastTradeTime.Content = sq.TimeOfTrade;
            DaysRange.Content = sq.DaysRange;
            DaysChange.Content = sq.Change;
            DaysPercentage.Content = sq.PercentageChange;
            CompanyName.Content = sq.CompanyName;

            client.Close();
        }
        private void GetQuote(object sender, RoutedEventArgs e)
        {
            String tickerSymbol = StockTickerTextBox.Text;
            StockQuote sq;

            YahooQuotesClient client = new YahooQuotesClient();
            // Use the 'client' variable to call operations on the service.

            sq = client.GetQuoteForStockSymbol(tickerSymbol);

            // Always close the client.
            client.Close();

            // Now we can set the variables on the page
            LastTradePrice.Content = sq.LastTradePrice;
            TradeDate.Content = sq.DateOfTrade;
            LastTradeTime.Content = sq.TimeOfTrade;
            DaysRange.Content = sq.DaysRange;
            DaysChange.Content = sq.Change;
            DaysPercentage.Content = sq.PercentageChange;
            CompanyName.Content = sq.CompanyName;
        }