You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes a Windows Forms user interface.
The user interface connects to the business logic layer and binds the controls directly to the objects that are exposed by the business logic layer.
A class in the business logic layer performs validation of input values and implements the IDataErrorInfo interface.
You need to provide feedback to users when the business logic layer reports a validation error.
What should you do?
A.
Implement a new class that inherits the ValidationRule class.
B.
Use the GiveFeedback event on the controls to detect errors.
C.
Use the ErrorProvider control to detect and display validation errors.
D.
Catch the ValidationError exceptions by using the TRY/CATCH blocks.