Return _BusinessObject End Get Set(ByVal value As BusinessLayerBase) '-- If the business object is being removed, then make sure it is no longer bound If (value Is Nothing) AndAlso (_BusinessObject IsNot Nothing) Then Me._BusinessObject.RemoveFromListOfBoundControls(Me) End If
If (Not Me.DesignMode) AndAlso (value IsNot Nothing) Then value.AddToListOfBoundControls(Me) End If
_BusinessObject = CType(value, BusinessLayer) End SetEnd Property