C# Class XWiki.Logging.UserNotifier

Simple utility class for user notifications.
Afficher le fichier Open project: xwiki-contrib/xwiki-office

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

Exclamation() public static méthode

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

Message() public static méthode

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

RetryCancelQuestion() public static méthode

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

StopHand() public static méthode

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
Résultat void

Warning() public static méthode

Shows a warning message.
public static Warning ( string text ) : DialogResult
text string Warning message text.
Résultat DialogResult

YesNoCancelQuestion() public static méthode

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

YesNoQuestion() public static méthode

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