C# 클래스 Catel.Services.MessageService

Message service that implements the IMessageService.
상속: Catel.Services.ViewModelServiceBase, IMessageService
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
MessageService ( IDispatcherService dispatcherService ) : System

Initializes a new instance of the MessageService class.

ShowAsync ( string message, string caption = "", MessageButton button = MessageButton.OK, MessageImage icon = MessageImage.None ) : Task

Shows an information message to the user and allows a callback operation when the message is completed.

ShowErrorAsync ( Exception exception ) : Task

Shows an error message to the user and allows a callback operation when the message is completed.

ShowErrorAsync ( string message, string caption = "" ) : Task

Shows an error message to the user and allows a callback operation when the message is completed.

ShowInformationAsync ( string message, string caption = "" ) : Task

Shows an information message to the user and allows a callback operation when the message is completed.

ShowWarningAsync ( string message, string caption = "" ) : Task

Shows a warning message to the user and allows a callback operation when the message is completed.

보호된 메소드들

메소드 설명
ShowMessageBoxAsync ( string message, string caption = "", MessageButton button = MessageButton.OK, MessageImage icon = MessageImage.None ) : Task

Shows the message box.

TranslateMessageBoxResult ( MessageBoxResult result ) : MessageResult

Translates the message box result.

TranslateMessageButton ( MessageButton button ) : MessageBoxButton

Translates the message button.

비공개 메소드들

메소드 설명
Initialize ( ) : void

Called at the end of constructors.

Show ( string message, string caption = "", MessageButton button = MessageButton.OK, MessageImage icon = MessageImage.None ) : Task
ShowError ( Exception exception ) : Task
ShowError ( string message, string caption = "" ) : Task
ShowInformation ( string message, string caption = "" ) : Task
ShowWarning ( string message, string caption = "" ) : Task

메소드 상세

MessageService() 공개 메소드

Initializes a new instance of the MessageService class.
The is null.
public MessageService ( IDispatcherService dispatcherService ) : System
dispatcherService IDispatcherService The dispatcher service.
리턴 System

ShowAsync() 공개 메소드

Shows an information message to the user and allows a callback operation when the message is completed.
The is null or whitespace.
public ShowAsync ( string message, string caption = "", MessageButton button = MessageButton.OK, MessageImage icon = MessageImage.None ) : Task
message string The message.
caption string The caption.
button MessageButton The button.
icon MessageImage The icon.
리턴 Task

ShowErrorAsync() 공개 메소드

Shows an error message to the user and allows a callback operation when the message is completed.
The is null.
public ShowErrorAsync ( Exception exception ) : Task
exception System.Exception The exception.
리턴 Task

ShowErrorAsync() 공개 메소드

Shows an error message to the user and allows a callback operation when the message is completed.
The is null or whitespace.
public ShowErrorAsync ( string message, string caption = "" ) : Task
message string The message.
caption string The caption.
리턴 Task

ShowInformationAsync() 공개 메소드

Shows an information message to the user and allows a callback operation when the message is completed.
The is null or whitespace.
public ShowInformationAsync ( string message, string caption = "" ) : Task
message string The message.
caption string The caption.
리턴 Task

ShowMessageBoxAsync() 보호된 메소드

Shows the message box.
The is null or whitespace.
protected ShowMessageBoxAsync ( string message, string caption = "", MessageButton button = MessageButton.OK, MessageImage icon = MessageImage.None ) : Task
message string The message.
caption string The caption.
button MessageButton The button.
icon MessageImage The icon.
리턴 Task

ShowWarningAsync() 공개 메소드

Shows a warning message to the user and allows a callback operation when the message is completed.
The is null or whitespace.
public ShowWarningAsync ( string message, string caption = "" ) : Task
message string The message.
caption string The caption.
리턴 Task

TranslateMessageBoxResult() 보호된 정적인 메소드

Translates the message box result.
protected static TranslateMessageBoxResult ( MessageBoxResult result ) : MessageResult
result MessageBoxResult The result.
리턴 MessageResult

TranslateMessageButton() 보호된 정적인 메소드

Translates the message button.
protected static TranslateMessageButton ( MessageButton button ) : MessageBoxButton
button MessageButton The button.
리턴 MessageBoxButton