private void OnShowOnMap(object sender, RoutedEventArgs e)
        {
            ResultsFilter.GroupedOC <ResultBasicInfo> selectedResult = (sender as MenuItem).DataContext as ResultsFilter.GroupedOC <ResultBasicInfo>;

            List <GPSEntity> pins = new List <GPSEntity>();

            foreach (var selected in selectedResult)
            {
                if (selected.Latitude != null && selected.Longitude != null)
                {
                    pins.Add(new GPSEntity()
                    {
                        Location = new GeoCoordinate(Convert.ToDouble(selected.Latitude), Convert.ToDouble(selected.Longitude)), Title = selected.Title
                    });
                }
            }

            UseBingMapToShow(pins);
        }
 private void OnGoToSurveyPage(object sender, RoutedEventArgs e)
 {
     ResultsFilter.GroupedOC <ResultBasicInfo> selectedSurvey = (sender as MenuItem).DataContext as ResultsFilter.GroupedOC <ResultBasicInfo>;
     NavigationService.Navigate(new Uri(string.Format("/View/SurveyPage.xaml?SurveyName={0}&SurveyId={1}&isFavorite={2}", selectedSurvey.Title, selectedSurvey.Id, selectedSurvey.Favorite), UriKind.Relative));
 }