BeerDrinkin.iOS.CustomControls.BeerStatsView.Draw C# (CSharp) Method

Draw() public method

public Draw ( CGRect rect ) : void
rect CGRect
return void
        public override void Draw(CGRect rect)
        {
            base.Draw(rect);

            BackgroundColor = UIColor.Clear;

            if (string.IsNullOrEmpty(_name))
                _name = "Beer Drinkin";
            if (string.IsNullOrEmpty(_country))
                _country = "United Kingdom";
            if (string.IsNullOrEmpty(_abv))
                _abv = "N/A ";
            if (string.IsNullOrEmpty(_ibu))
                _ibu = "N/A ";
            if (string.IsNullOrEmpty(_srm))
                _srm = "N/A ";

            DrawControl(rect, _name, _country, _abv, _ibu, _srm);
        }