// button 'buttonFetchEvents' clicked private void buttonFetchEvents_Click(object sender, EventArgs e) { Thread thread = new Thread(() => { m_FBAdapter.FetchCollectionAsync(listBoxEvents, m_FBAdapter.Events, "Name"); }); thread.Start(); }
private void buttonFetchEvents_Click(object sender, EventArgs e) { new Thread(() => m_FBAdapter.FetchCollectionAsync(listBoxEvents, m_FBAdapter.Events, "Name")).Start(); new Thread(() => loadMap()).Start(); }
private void buttonFetchEvents_Click(object sender, EventArgs e) { new Thread(() => m_FBAdapter.FetchCollectionAsync(listBoxEvents, m_UserEvents.GetEvents(), "Name")).Start(); new Thread(() => m_Map.LoadMap(mapControl, m_FBAdapter, m_UserEvents.GetEvents())).Start(); }