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

using System.Windows;

using CommonHelpers;

namespace UserWin {

//**************************************************************************************************
partial class UXAppWaiting {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public static async Task<bool> ReportErrorFmt( string errorMessageFmt, params string[] parameters )
{
   return await ReportErrorFmt( (Window)null, errorMessageFmt, parameters );
}

public static async Task<bool> ReportErrorFmt(
   [HOptional] Window owner, string errorMessageFmt, params string[] parameters )
{
   return await ReportErrorFmt( (UXShowMessageExtraInfo)null, owner, errorMessageFmt, parameters );
}

//==================================================================================================

public static async Task<bool> ReportErrorFmt(
   [HOptional] UXShowMessageExtraInfo extraInfo,
   string errorMessageFmt, params string[] parameters )
{
   return await ReportErrorFmt( extraInfo, (Window)null, errorMessageFmt, parameters );
}

public static async Task<bool> ReportErrorFmt(
   [HOptional] UXShowMessageExtraInfo extraInfo,
   [HOptional] Window owner,
   string errorMessageFmt,
   params string[] parameters )
{
   return await ReportError( extraInfo, owner, string.Format(errorMessageFmt,parameters) );
}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // UXAppWaiting
//**************************************************************************************************

} // UserWin
