//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//
// UserWin satellite library | Author: Sergei Y.Kitáev
//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System;
using System.Threading.Tasks;

using System.Windows;

using CommonHelpers;

namespace UserWin {

//**************************************************************************************************
partial class UXMessageBox {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static async Task ShowMessage(
   string text, string caption, MessageBoxImage icon )
{
   await ShowMessage( (Window)null, text, caption, icon );
}

public static async Task<MessageBoxResult> ShowMessage(
   string text, [HOptional] string caption,
   MessageBoxButton button, MessageBoxImage icon )
{
   return await ShowMessage( (Window)null, text, caption, button, icon );
}

public static async Task<MessageBoxResult> ShowMessage(
   string text, [HOptional] string caption,
   MessageBoxButton button, MessageBoxImage icon,
   MessageBoxResult defaultResult )
{
   return await ShowMessage( (Window)null, text, caption, button, icon, defaultResult );
}

//--------------------------------------------------------------------------------------------------

public static async Task ShowMessage(
   [HOptional] Window owner, string text,
   [HOptional] string caption, MessageBoxImage icon )
{
   await ShowMessage( (UXShowMessageExtraInfo)null, owner, text, caption, icon );
}

public static async Task<MessageBoxResult> ShowMessage(
   [HOptional] Window owner,
   string text, [HOptional] string caption,
   MessageBoxButton button, MessageBoxImage icon )
{
   return await ShowMessage( (UXShowMessageExtraInfo)null, owner, text, caption, button, icon );
}

public static async Task<MessageBoxResult> ShowMessage(
   [HOptional] Window owner,
   string text, [HOptional] string caption,
   MessageBoxButton button, MessageBoxImage icon,
   MessageBoxResult defaultResult )
{
   return await ShowMessage( (UXShowMessageExtraInfo)null,
      owner, text, caption, button, icon, defaultResult );
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // UXMessageBox
//**************************************************************************************************

} // UserWin
