mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
30 lines
738 B
C#
30 lines
738 B
C#
using Artemis.UI.ViewModels.Dialogs;
|
|
|
|
namespace Artemis.UI.Screens.Dialogs
|
|
{
|
|
public class ConfirmDialogViewModel : DialogViewModelBase
|
|
{
|
|
public ConfirmDialogViewModel(string header, string text, string confirmText, string cancelText)
|
|
{
|
|
Header = header;
|
|
Text = text;
|
|
ConfirmText = confirmText;
|
|
CancelText = cancelText;
|
|
}
|
|
|
|
public string Header { get; }
|
|
public string Text { get; }
|
|
public string ConfirmText { get; }
|
|
public string CancelText { get; }
|
|
|
|
public void Confirm()
|
|
{
|
|
Session.Close(true);
|
|
}
|
|
|
|
public void Cancel()
|
|
{
|
|
Session.Close(false);
|
|
}
|
|
}
|
|
} |