using SPT.Launcher.Helpers;
using ReactiveUI;
namespace SPT.Launcher.ViewModels.Dialogs
{
public class ConfirmationDialogViewModel : ViewModelBase
{
public string Question { get; set; }
public string ConfirmButtonText { get; set; }
public string DenyButtonText { get; set; }
public bool AllowConfirm { get; set; }
///
/// A confirmation dialog
///
/// Set to null when is used, since the dialog host is handling routing
///
///
///
public ConfirmationDialogViewModel(IScreen Host, string Question, string? ConfirmButtonText = null, string? DenyButtonText = null, bool allowConfirm = true) : base(Host)
{
this.Question = Question;
this.ConfirmButtonText = ConfirmButtonText ?? LocalizationProvider.Instance.yes;
this.DenyButtonText = DenyButtonText ?? LocalizationProvider.Instance.no;
this.AllowConfirm = allowConfirm;
}
}
}