mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
24 lines
490 B
C#
24 lines
490 B
C#
|
|
using System.Windows.Input;
|
||
|
|
using CommunityToolkit.Mvvm.Input;
|
||
|
|
using Iciclecreek.Avalonia.WindowManager;
|
||
|
|
|
||
|
|
namespace Aaru.Tui.ViewModels.Dialogs;
|
||
|
|
|
||
|
|
public sealed class MainHelpDialogViewModel : ViewModelBase
|
||
|
|
{
|
||
|
|
internal ManagedWindow _dialog = null!;
|
||
|
|
|
||
|
|
|
||
|
|
public MainHelpDialogViewModel(ManagedWindow dialog)
|
||
|
|
{
|
||
|
|
_dialog = dialog;
|
||
|
|
OkCommand = new RelayCommand(Ok);
|
||
|
|
}
|
||
|
|
|
||
|
|
public ICommand OkCommand { get; }
|
||
|
|
|
||
|
|
void Ok()
|
||
|
|
{
|
||
|
|
_dialog.Close(true);
|
||
|
|
}
|
||
|
|
}
|