private void listBoxLocations_SelectedIndexChanged(object sender, EventArgs e) { if ((sender as ListBox).SelectedItem != null) { m_RideFromLocationName = (sender as ListBox).SelectedItem.ToString(); handlePageAfterStartPointSelected(); new Thread(initializeRide).Start(); FormMap map = new FormMap(); map.ShowLocationOnMap(m_RideFromLocationName); map.ShowDialog(); } }
private void listBoxLocations_SelectedIndexChanged(object sender, EventArgs e) { if ((sender as ListBox).SelectedItem != null) { m_RideFromLocationName = (sender as ListBox).SelectedItem.ToString(); try { handlePageAfterStartPointSelected(); DataManagerWrapper.DataManager.InitializeRide(m_RideFromLocationName); FormMap map = new FormMap(); map.ShowLocationOnMap(m_RideFromLocationName); map.ShowDialog(); } catch (Exception ex) { FormFacebookApp.ShowFacebookError(ex.Message); } } }