Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
        }