using System;

using CommonHelpers.WASM;
using AFXUI;

namespace BookRegistry.Client.Shared {

//**************************************************************************************************
public class MessageBoxParams {
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

public string? Title { get; set; }
public string? Text { get; set; }

public string? ImagePath { get; set; }

public string? AcceptButtonCaption { get; set; }
public string? XAcceptButtonCaption { get; set; }
public string? CloseButtonCaption { get; set; }

public bool FocusAcceptButton { get; set; }
public bool FocusXAcceptButton { get; set; }
public bool FocusCloseButton { get; set; }

public bool UseCloseIcon { get; set; }
public bool AllowEnterKeyAuto { get; set; }
public bool AllowEscapeCancellation { get; set; }

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

public MessageBoxParams(bool assignDefaults=true)
{
   if ( assignDefaults )
      UseCloseIcon =
      AllowEnterKeyAuto =
      AllowEscapeCancellation = true;
}

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

public string AcceptButtonCaptionDef => "ACCEPT";
public string CloseButtonCaptionDef  => "CLOSE";

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
} // MessageBoxParams
//**************************************************************************************************

} // BookRegistry.Client.Shared
