You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of application frameworks.
You are currently developing a Microsoft Windows Forms monitoring application for Domain.com. This application is destined to read data in a Microsoft SQL Server 2005 database and display it graphically on a form. All Domain.com users need to be able to:
1. choose the refresh rate for displaying data
2. choose an interval in multiples of one second
To this end you need to reuse a component to meet these requirements without requiring excessive coding.
What should you do?
A.
You need to encapsulate a BackgroundWorker instance in a custom class by wrapping the BackgroundWorker component.
B.
You need to encapsulate a Timer instance in a custom class by wrapping the Timer component.
C.
You need to derive a class from BackgroundWorker by extending the BackgroundWorker component.
D.
You need to derive a class from System.Windows.Forms.Timer by extending the Timer component.