protected override void Dispose(bool disposing) { base.Dispose(disposing); if (recipePhotoViewController != null) { recipePhotoViewController.Dispose(); recipePhotoViewController = null; } if (tableSource != null) { tableSource.Dispose(); tableSource = null; } if (tableHeaderView != null) { tableHeaderView.Dispose(); tableHeaderView = null; } if (photoButton != null) { photoButton.Dispose(); photoButton = null; } if (nameLabel != null) { nameLabel.Dispose(); nameLabel = null; } }
partial void ShowPhoto(NSObject sender) { // Navigate to the recipe photo view controller to show a large photo for the recipe. recipePhotoViewController = new RecipePhotoViewController(); recipePhotoViewController.Recipe = Recipe; NavigationController.PushViewController(recipePhotoViewController, true); }
protected override void Dispose (bool disposing) { base.Dispose (disposing); if (recipePhotoViewController != null) { recipePhotoViewController.Dispose (); recipePhotoViewController = null; } if (tableSource != null) { tableSource.Dispose (); tableSource = null; } if (tableHeaderView != null) { tableHeaderView.Dispose (); tableHeaderView = null; } if (photoButton != null) { photoButton.Dispose (); photoButton = null; } if (nameLabel != null) { nameLabel.Dispose (); nameLabel = null; } }
partial void ShowPhoto (NSObject sender) { // Navigate to the recipe photo view controller to show a large photo for the recipe. recipePhotoViewController = new RecipePhotoViewController (); recipePhotoViewController.Recipe = Recipe; NavigationController.PushViewController (recipePhotoViewController, true); }