C# Class XWiki.Logging.UserNotifier

Simple utility class for user notifications.
显示文件 Open project: xwiki-contrib/xwiki-office

Public Methods

Method Description
Error ( string text ) : void

Shows an error message. Used to inform the user that an error has occured.

Exclamation ( string text ) : void

Displays an exclamation message.

Message ( string text ) : void

Displays a simple message to the user.

RetryCancelQuestion ( string text ) : DialogResult

Displays a message to the user and two Retry/Cancel buttons.

StopHand ( string text ) : void

Shows a stop message. Used to inform the user that an action will not execute.

Warning ( string text ) : DialogResult

Shows a warning message.

YesNoCancelQuestion ( string text ) : DialogResult

Asks the user a question and provides Yes/No/Cancel buttons.

YesNoQuestion ( string text ) : DialogResult

Asks the user a question and provides Yes/No buttons.

Private Methods

Method Description
Show ( string text ) : DialogResult
Show ( string text, string caption ) : DialogResult
Show ( string text, string caption, MessageBoxButtons buttons ) : DialogResult
Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon ) : DialogResult
Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton ) : DialogResult
Show ( string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options ) : DialogResult
UserNotifier ( ) : System

Private constructor to avoid instancing and inheritance.

Method Details

Error() public static method

Shows an error message. Used to inform the user that an error has occured.
public static Error ( string text ) : void
text string Error message text.
return void

Exclamation() public static method

Displays an exclamation message.
public static Exclamation ( string text ) : void
text string Text to be displayed
return void

Message() public static method

Displays a simple message to the user.
public static Message ( string text ) : void
text string Text message to display.
return void

RetryCancelQuestion() public static method

Displays a message to the user and two Retry/Cancel buttons.
public static RetryCancelQuestion ( string text ) : DialogResult
text string Message to display.
return DialogResult

StopHand() public static method

Shows a stop message. Used to inform the user that an action will not execute.
public static StopHand ( string text ) : void
text string Stop message text
return void

Warning() public static method

Shows a warning message.
public static Warning ( string text ) : DialogResult
text string Warning message text.
return DialogResult

YesNoCancelQuestion() public static method

Asks the user a question and provides Yes/No/Cancel buttons.
public static YesNoCancelQuestion ( string text ) : DialogResult
text string Question to ask.
return DialogResult

YesNoQuestion() public static method

Asks the user a question and provides Yes/No buttons.
public static YesNoQuestion ( string text ) : DialogResult
text string Question to ask.
return DialogResult