You are creating a Windows application by using the .NET Framework 3.5. The application is used to manage employee information. The application meets the following specifications:
* A main form named EmployeeList contains a list control that displays a list of all employees.
* The menu items help simultaneously display various detail forms for each employee selected from the list control.
* Each detail form for a selected employee contains a different set of information about the employee.
You need to ensure that when a user switches from one employee to another, the open detail forms are updated to the corresponding employee information. What should you do?
A.
Implement the INotifyPropertyChanging interface on the EmployeeList form.Add a static constructor to all detail forms and instantiate a PropertyChangingEventHandler delegate in all the static constructors.
B.
Add a public event named SelectEmployeeChanged to the EmployeeList form. Raise the event when another employee is selected from the list control.Subscribe to the SelectEmployeeChanged event in the constructor of all the detail forms along with a method that updates the information displayed on the form.
C.
Add a public static property named EmployeeId to all the detail forms.Implement the INotifyPropertyChanging interface on the EmployeeList form.Implement the INotifyPropertyChanging interface on each detail form.
D.
Add a public delegate named UpdateEmployee of the type EventHandler to the EmployeeList form.Create a method named UpdateInformation in all the detail forms.When a detail form is loaded, instantiate a new EventHandler delegate and point it to the UpdateInformation method. Assign this delegate to the UpdateEmployee delegate of the EmployeeList form.Invoke the UpdateEmployee delegate when another employee is selected from the list control.