コード例 #1
0
        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;
            }
        }
コード例 #2
0
		public RecipeDetailViewController (Recipe recipe) : base (UITableViewStyle.Grouped)
		{
			tableSource = new RecipeDetailSource (this);
			NavigationItem.Title = "Recipe";
			Recipe = recipe;
		}
コード例 #3
0
		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;
			}
		}
コード例 #4
0
 public RecipeDetailViewController(Recipe recipe) : base(UITableViewStyle.Grouped)
 {
     tableSource          = new RecipeDetailSource(this);
     NavigationItem.Title = "Recipe";
     Recipe = recipe;
 }