lblFirmName.Text = proxy.GetName(txtFirmNameStockSymbol.Text);
lblStockPrice.Text = "$ " +
   Convert.ToString(proxy.GetPrice(txtPriceStockSymbol.Text));

Stock theStock = proxy.GetHistory(txtHistoryStockSymbol.Text);
string StockName = theStock.StockName;
double StockPrice = theStock.Price;

DateTime TradeDate1 = theStock.History[0].TradeDate;
double Price1 = theStock.History[0].Price;

DateTime TradeDate2 = theStock.History[1].TradeDate;
double Price2 = theStock.History[1].Price;

// Wywietlenie wynikw.
pnlHistory.Visible = true;
lblHistoryStockName.Text = StockName;
lblHistoryStockPrice.Text = "$ " + Convert.ToString(StockPrice);
lblHistoryDate1.Text =TradeDate1.ToString("d");
lblHistoryPrice1.Text = "$ " + Convert.ToString(Price1);
lblHistoryDate2.Text = TradeDate2.ToString("d");
lblHistoryPrice2.Text = "$ " + Convert.ToString(Price2);
