My error prompt works well, when it's outside of the range it prompts the error message. If there a way to have it prompt the message and not stop code from running?
public string Nint
{
get
{
return _nint;
}
set
{
if(double.Parse(value) > (double) Product.MaximumRate || (double.Parse(value) < (double) Product.MinimumRate))
{
NintErrorEnabled = true;
throw new ValidationException();
}
NotifyOfPropertyChange();
}
}
"throw new ValidationException();" stops the code right in it's track. Could I still display the error message without stopping the code?