MonoTouch.Dialog.BooleanElementCell.Update C# (CSharp) Method

Update() public method

public Update ( BooleanElement element ) : void
element BooleanElement
return void
		public void Update(BooleanElement element){
			_element = element;
			if (_switch==null) 
				prepareCell();
			
			TextLabel.BackgroundColor = UIColor.Clear;
			TextLabel.Text = _element.Caption;
			_switch.On = _element.Value;
		}