-
Notifications
You must be signed in to change notification settings - Fork 0
3. IMessageBox interface
franciscoserdio edited this page Sep 20, 2016
·
4 revisions
To simplify, there is only included the documentation for the function with all parameters.
/// <summary>
/// Interface to implement in objects dedicated to show message box
/// </summary>
public interface IMessageBox
{
/// <summary>
/// Show a message to the user
/// </summary>
/// <param name="messageBoxKey">The message box key to receive in the response event.</param>
/// <param name="message">The message to show</param>
/// <param name="title">The title of the message</param>
/// <param name="messageType">The type of the message</param>
/// <param name="buttons">The buttons to answer the message</param>
void ShowMessage(string message);
void ShowMessage(string messageBoxKey, string message);
void ShowMessage(string messageBoxKey, string message, MessageBoxButtons buttons);
void ShowMessage(string messageBoxKey, string message, string title);
void ShowMessage(string messageBoxKey, string message, string title, MessageBoxButtons buttons);
void ShowMessage(string messageBoxKey, string message, MessageBoxType messageType);
void ShowMessage(string messageBoxKey, string message, MessageBoxType messageType, MessageBoxButtons buttons);
void ShowMessage(string messageBoxKey, string message, string title, MessageBoxType messageType);
void ShowMessage(string messageBoxKey, string message, string title, MessageBoxType messageType, MessageBoxButtons buttons);
/// <summary>
/// The message box response event
/// </summary>
event MessageBoxEventHandler ResponseMessageBox;
}