mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
32 lines
825 B
C#
32 lines
825 B
C#
using Artemis.UI.Shared.Services.Dialog;
|
|
|
|
namespace Artemis.UI.Shared.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()
|
|
{
|
|
if (!Session.IsEnded)
|
|
Session.Close(true);
|
|
}
|
|
|
|
public void Cancel()
|
|
{
|
|
if (!Session.IsEnded)
|
|
Session.Close(false);
|
|
}
|
|
}
|
|
} |