void ReleaseDesignerOutlets() { if (CountryButton != null) { CountryButton.Dispose(); CountryButton = null; } if (CountryLabel != null) { CountryLabel.Dispose(); CountryLabel = null; } if (PostCodeCountainerView != null) { PostCodeCountainerView.Dispose(); PostCodeCountainerView = null; } if (PostcodeTextField != null) { PostcodeTextField.Dispose(); PostcodeTextField = null; } if (HomeButton != null) { HomeButton.Dispose(); HomeButton = null; } }
public void Init(Recipe item) { if (item == null) { throw new ArgumentNullException("item"); } DishImage.Image = item.Image; DishLabel.Text = item.Name; CountryButton.SetTitle(item.Country, UIControlState.Normal); TimeLabel.Text = item.PreparationTime; }