MessageBoxReporter
Jump to navigation
Jump to search
C# class that reports a message using a MessageBox (for applications with a user interface).
Namespace
Hierarchy
- System.Object
- au.util.io.Reporter
- au.util.io.MessageBoxReporter
- au.util.io.Reporter
Usage
Appliations can create an object from this class and use it to report messages to the user via MessageBoxes. The object should be of type Reporter even though the MessageBoxReporter constructor is used, in order to more easily switch between other types of reporters.
Public Methods
new MessageBoxReporter
MessageBoxReporter(IWin32Window owner, string appName)
Creates a MessageBoxReporter object for the specified window with the specified title.
- owner = The window that MessageBoxes should belong to.
- appName = Name of the application (used as end of MessageBox window title).
Report
void Report(string title, string message, string debugDetail, MessageType mType)
Reports a message to the user via a MessageBox. Overrides Reporter.Report()
- title = MessageBox caption.
- message = The actual message, user-friendly.
- debugDetail = Details to display at end of message.
- mType = Type of message being reported.