[]
        
(Showing Draft Content)

C1.WPF.C1MessageBox.Show

Show Method

Show(string, string, C1MessageBoxButton, C1MessageBoxIcon, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption, button and icon; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon, Action<MessageBoxResult> callback)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, Action<MessageBoxResult>)

Displays a message box that has a message and calls back with the result.

Declaration
public static void Show(string message, Action<MessageBoxResult> callback)
Parameters
Type Name Description
string message

The text to display as a message.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, Action<MessageBoxResult>)

Displays a message box that has a message and title bar caption; and calls back with the result.

Declaration
public static void Show(string message, string caption, Action<MessageBoxResult> callback)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, C1MessageBoxButton, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption and button; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, Action<MessageBoxResult> callback)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string, string, C1MessageBoxIcon, Action<MessageBoxResult>)

Displays a message box that has a message, title bar caption and icon; and calls back with the result.

Declaration
public static void Show(string message, string caption, C1MessageBoxIcon icon, Action<MessageBoxResult> callback)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Action<MessageBoxResult> callback

An Action<T> which is called with the result of the message box.

Show(string)

Displays a message box that has a message.

Declaration
public static void Show(string message)
Parameters
Type Name Description
string message

The text to display as a message.

Show(string, string)

Displays a message box that has a message and title bar caption.

Declaration
public static void Show(string message, string caption)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

Show(string, string, C1MessageBoxButton)

Displays a message box that has a message, title bar caption and button.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

Show(string, string, C1MessageBoxIcon)

Displays a message box that has a message, title bar caption and icon.

Declaration
public static void Show(string message, string caption, C1MessageBoxIcon icon)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.

Show(string, string, C1MessageBoxButton, C1MessageBoxIcon)

Displays a message box that has a message, title bar caption and icon.

Declaration
public static void Show(string message, string caption, C1MessageBoxButton button, C1MessageBoxIcon icon)
Parameters
Type Name Description
string message

The text to display as a message.

string caption

The title bar caption.

C1MessageBoxButton button

A C1MessageBoxButton value that specifies which buttons to display.

C1MessageBoxIcon icon

A C1MessageBoxIcon value that specifies the icon to display.