private void Pin_MouseDown(object sender, MouseButtonEventArgs e) { e.Handled = true; var location = (LocationMark)sender; switch (FireViewer.ViewFire(location.ImagePath, location.DetectionResults, location.Longitude, location.Latitude)) { case UserFeedbackAction.Alert: MessageBox.Show("Your team has been notified about it. Coordinates of the fire were included", "Notified", MessageBoxButton.OK, MessageBoxImage.Information); break; case UserFeedbackAction.NoFire: Flights.RemoveMark(location); RenderMap(); break; } }