Click or drag to resize

MessageService Class

Class with static methods to show message boxes. All text displayed using the MessageService is passed to the StringParser to replace ${res} markers.
Inheritance Hierarchy
SystemObject
  Altaxo.Main.ServicesMessageService

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class MessageService

The MessageService type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberDefaultMessageBoxTitle Gets/Sets the default title for message boxes displayed by the message service.
Public propertyStatic memberProductName Gets/Sets the name of the product. Is used by the string parser as replacement for ${ProductName}.
Top
Methods
 NameDescription
Public methodStatic memberAskQuestion Asks the user a Yes/No question, using "Yes" as the default button. Returns true if yes was clicked, false if no was clicked.
Public methodStatic memberAskQuestionFormatted(String, Object) 
Public methodStatic memberAskQuestionFormatted(String, String, Object) 
Public methodStatic memberShowCustomDialog(String, String, String) Shows a custom dialog.
Public methodStatic memberShowCustomDialog(String, String, Int32, Int32, String) Shows a custom dialog.
Public methodStatic memberShowError Shows an error using a message box.
Public methodStatic memberShowErrorFormatted Shows an error using a message box. formatstring is first passed through the StringParser, then through Format(String, Object), using the formatitems as arguments.
Public methodStatic memberShowException Shows an exception.
Public methodStatic memberShowHandledException 
Public methodStatic memberShowInputBox 
Public methodStatic memberShowMessage 
Public methodStatic memberShowMessageFormatted(String, Object) 
Public methodStatic memberShowMessageFormatted(String, String, Object) 
Public methodStatic memberShowWarning Shows a warning message.
Public methodStatic memberShowWarningFormatted Shows a warning message. formatstring is first passed through the StringParser, then through Format(String, Object), using the formatitems as arguments.
Top
See Also