This is the call:
bool isValid = true;
if (this.ExternalConstraint != null)
{
isValid &= this.ExternalConstraint(this, EventArgs.Empty);
}
if (isValid)
{
//...
}
The event look like:
public delegate bool externalConstraint(object sender, EventArgs args);
event externalConstraint ExternalConstraint;
When debugging I notice that all method attached to the event is called but only the last return seem to return to this line : isValid &= this.ExternalConstraint(this, EventArgs.Empty);
. How can I get the event to return every method or to handle the all return value to take a decision?