void PanoramaRequestCallback(Panorama panorama, NSError error) { if (error != null) { var alertController = UIAlertController.Create("warning".LocalizedString("Warning title"), "street_view_error".LocalizedString("Street view error"), UIAlertControllerStyle.Alert); alertController.AddAction(UIAlertAction.Create("ok".LocalizedString("OK title for button"), UIAlertActionStyle.Destructive, null)); PresentViewController(alertController, false, null); return; } var streetViewController = new StreetViewController(viewModel.Place.Geometry.Location, viewModel.Place.Name); NavigationController.PushViewController(streetViewController, false); }
void PanoramaRequestCallback (Panorama panorama, NSError error) { if (error != null) { var alertController = UIAlertController.Create ("warning".LocalizedString("Warning title"), "street_view_error".LocalizedString("Street view error"), UIAlertControllerStyle.Alert); alertController.AddAction (UIAlertAction.Create ("ok".LocalizedString("OK title for button"), UIAlertActionStyle.Destructive, null)); PresentViewController (alertController, false, null); return; } var streetViewController = new StreetViewController (viewModel.Place.Geometry.Location, viewModel.Place.Name); NavigationController.PushViewController(streetViewController, false); }