public ShowWarningAsync ( string message, string caption = "" ) : Task |
||
message | string | The message. |
caption | string | The caption. |
return | Task |
public virtual Task<MessageResult> ShowWarningAsync(string message, string caption = "")
{
if (string.IsNullOrEmpty(caption))
{
caption = Catel.ResourceHelper.GetString("WarningTitle");
}
const MessageButton button = MessageButton.OK;
const MessageImage icon = MessageImage.Warning;
return Show(message, caption, button, icon);
}