Class MessageBoxHandler
A utility class used to customize standard MessageBox.Show by handling MessageBoxShow event.
public class MessageBoxHandler
- Inheritance
-
MessageBoxHandler
Constructors
Methods
- DisplayError(ErrorEventArgs)
Displays error in the message box dialog.
- Init()
Initializes MessageBoxHandler.
- OnShowMessage(string, IWin32Window?, string?, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)
Calls MessageBoxShow event if it is assigned.
- Show(string)
Displays a message box with the specified message.
- Show(string, string)
Displays a message box with the specified message and caption.
- Show(string, string, MessageBoxButtons, Action<DialogResult>?)
Displays a message box with the specified message, caption and buttons.
- Show(string, string, MessageBoxButtons, MessageBoxIcon)
Displays a message box with the specified message, caption, buttons, and icon.
- Show(string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)
Displays a message box with the specified message, caption, buttons and icon.
- Show(IWin32Window, string, string)
Displays a message box with the specified message and caption.
- Show(IWin32Window, string, string, MessageBoxButtons, MessageBoxIcon)
Displays a message box with the specified owner, message, caption, buttons, and icon.
- Show(IWin32Window, string, string, MessageBoxButtons, MessageBoxIcon, Action<DialogResult>?)
Displays a message box with the specified message, caption, buttons and icon.
Events
- MessageBoxShow
Occurs when the message box dialog is displayed.