This interface provides access to methods that you can use to display message boxes. You may be wondering why you need an interface to display a message box. The reality is that you do not: Microsoft uses this interface with in code, because it aids in writing automated tests for designer pages.
However, using these methods does provide one useful benefit: The dialog boxes always have the “owner” set to the UDI Wizard, which ensures that the dialog box is grouped correctly with the main window.
You can use dependency injection to obtain a pointer to this interface using code like this in your class:
[Dependency]
public IMessageBoxService MessageBoxes { get; set; }
Related Topics