protected virtual void InternalUpdateControlValueFromBo()
{
// var relatedBO = GetRelatedBusinessObject();
_logger.Log("Begin InternalUpdateControlValueFromBo BO (" + this.BusinessObject + ") RelatedBO (" + _relatedBO + ") For Mapper (" + this.Control.Name + ")", LogCategory.Debug);
if (_relatedBO != null)
{
var comboBoxObjectCollection = this.Control.Items;
if (!comboBoxObjectCollection.Contains(_relatedBO))
{
comboBoxObjectCollection.Add(_relatedBO);
}
}
_comboBoxCollectionSelector.DeregisterForControlEvents();
try
{
_logger.Log("B4 SelectedItem InternalUpdateControlValueFromBo BO (" + this.BusinessObject + ") RelatedBO (" + _relatedBO + ") For Mapper (" + this.Control.Name + ")", LogCategory.Debug);
_logger.Log(GetStackTrace(), LogCategory.Debug);
Control.SelectedItem = _relatedBO;
if (_relatedBO == null && !String.IsNullOrEmpty(Control.Text)) Control.Text = "";
}
finally
{
_comboBoxCollectionSelector.RegisterForControlEvents();
}
}
private static string GetStackTrace()