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; } }
public RecipeDetailViewController (Recipe recipe) : base (UITableViewStyle.Grouped) { tableSource = new RecipeDetailSource (this); NavigationItem.Title = "Recipe"; Recipe = recipe; }
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; } }
public RecipeDetailViewController(Recipe recipe) : base(UITableViewStyle.Grouped) { tableSource = new RecipeDetailSource(this); NavigationItem.Title = "Recipe"; Recipe = recipe; }