Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created November 25, 2010 03:49
Show Gist options
  • Save mgroves/714875 to your computer and use it in GitHub Desktop.
Save mgroves/714875 to your computer and use it in GitHub Desktop.
private void RefreshData()
{
var t = new Thread(() =>
{
var tickers = _svc.GetDetailedItems(_portfolioId, GetStockItems());
RunOnUiThread(() =>
{
if (tickers.Any())
{
WriteTickerHeader(tickers.First());
foreach (var ticker in tickers)
{
WriteTickerRow(ticker);
}
}
});
});
t.Start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment