Submit big changes related with Material.Dialog

This commit is contained in:
appleneko2001
2022-02-12 23:26:24 +09:00
parent 52a06d2757
commit c80972cdbc
27 changed files with 771 additions and 758 deletions
@@ -1,29 +1,12 @@
using Avalonia.Layout;
using Avalonia.Threading;
using Material.Dialog.Views;
using System;
using System.Collections.Generic;
using System.Text;
using Material.Dialog.Views;
namespace Material.Dialog.ViewModels
{
public class AlertDialogViewModel : DialogWindowViewModel
{
private AlertDialog _window;
public AlertDialogViewModel(AlertDialog dialog)
{
_window = dialog;
}
public async void ButtonClick (string param)
{
await Dispatcher.UIThread.InvokeAsync(() =>
{
_window.Result = new DialogResult(param);
_window.Close();
});
}
}
}