using Aki.Launcher.Helpers; using ReactiveUI; namespace Aki.Launcher.ViewModels.Dialogs { public class ConfirmationDialogViewModel : ViewModelBase { public string Question { get; set; } public string ConfirmButtonText { get; set; } public string DenyButtonText { 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) : base(Host) { this.Question = Question; this.ConfirmButtonText = ConfirmButtonText ?? LocalizationProvider.Instance.yes; this.DenyButtonText = DenyButtonText ?? LocalizationProvider.Instance.no; } } }