public async Task <bool?> ShowMaybeQuestion(string message, string caption, MessageBoxIcon icon)
        {
            var result = await ShowMessageBox(message, caption, MessageBoxButton.YesNo, icon.Convert());

            if (result == MessageBoxResult.Cancel)
            {
                return(default(bool?));
            }

            return(result == MessageBoxResult.Yes);
        }
 public async Task <bool> ShowConfirmation(string message, string caption, MessageBoxIcon icon)
 {
     return(await ShowMessageBox(message, caption, MessageBoxButton.OKCancel, icon.Convert()) == MessageBoxResult.OK);
 }
 public async Task <bool> ShowQuestion(string message, string caption, MessageBoxIcon icon)
 {
     return(await ShowMessageBox(message, caption, MessageBoxButton.YesNo, icon.Convert()) == MessageBoxResult.Yes);
 }
 public Task ShowMessage(string message, string caption, MessageBoxIcon icon)
 {
     return(ShowMessageBox(message, caption, MessageBoxButton.OK, icon.Convert()));
 }