protected async Task DisplayTrackMap(TrackMapInfo trackMapInfo) { try { if (_loading) { return; } if (trackMapInfo == null) { return; } TrackMapImage = await _trackMapRepo.GetTrackMapImageAsync(trackMapInfo.Id); } catch (Exception ex) { ExceptionHandler(ex); } }
private async void cboTrackMaps_SelectedIndexChanged(object sender, EventArgs e) { try { if (_loading) { return; } if (cboTrackMaps.SelectedItem == null) { return; } var selected = (TrackMapInfo)cboTrackMaps.SelectedItem; TrackMapImage = await _trackMapRepo.GetTrackMapImageAsync(selected.Id); } catch (Exception) { throw; } }