private void DisplayLocationButton_Click(object sender, RoutedEventArgs e) { if (LocationsListBox.SelectedItem != null) { MapGenerator.DisplayLocation((Location)LocationsListBox.SelectedItem); } }
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) { MapGenerator.DisplayLocation(SelectedLocation); e.Handled = true; }