mirror of
https://github.com/AntonyCorbett/JWLMerge
synced 2026-01-16 23:04:47 -05:00
35 lines
897 B
C#
35 lines
897 B
C#
namespace JWLMerge.ViewModel
|
|
{
|
|
using MaterialDesignThemes.Wpf;
|
|
using Microsoft.Toolkit.Mvvm.ComponentModel;
|
|
using Microsoft.Toolkit.Mvvm.Input;
|
|
|
|
// ReSharper disable once ClassNeverInstantiated.Global
|
|
internal sealed class RemoveFavouritesPromptViewModel : ObservableObject
|
|
{
|
|
public RemoveFavouritesPromptViewModel()
|
|
{
|
|
YesCommand = new RelayCommand(Yes);
|
|
NoCommand = new RelayCommand(No);
|
|
}
|
|
|
|
public RelayCommand YesCommand { get; }
|
|
|
|
public RelayCommand NoCommand { get; }
|
|
|
|
public bool Result { get; private set; }
|
|
|
|
private void No()
|
|
{
|
|
Result = false;
|
|
DialogHost.CloseDialogCommand.Execute(null, null);
|
|
}
|
|
|
|
private void Yes()
|
|
{
|
|
Result = true;
|
|
DialogHost.CloseDialogCommand.Execute(null, null);
|
|
}
|
|
}
|
|
}
|