This makes the messagebox pop up on registration and unregistation. The methods and properties to expose to the data consumer. The code that implements the functionality of the component.