public virtual IxCoreColleague[] GetMessageTargets()
{
CheckDisposed();
// Normally a slice should only handle messages if both it and its data tree
// are visible. Override this method if there is some reason to handle messages
// while not visible. Note however that currently (31 Aug 2005) RecordEditView
// hides the data tree but does not remove slices when no record is current.
// Thus, a slice that is not visible might belong to a display of a deleted
// or unavailable object, so be very careful what you enable!
if (Visible && ContainingDataTree.Visible)
{
if (Control != null && Control.IsDisposed)
throw new ObjectDisposedException(ToString() + GetHashCode(), "Trying to use object that no longer exists: ");
if (Control is IxCoreColleague)
return new[] { Control as IxCoreColleague, this };
else
return new IxCoreColleague[] { this };
}
else
return new IxCoreColleague[0];
}
/// <summary>