2025-11-05 11:49:53 +01:00
|
|
|
|
using DevExpress.Mvvm;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
|
2025-11-24 12:20:26 +01:00
|
|
|
|
namespace BeWo.ViewModel.View.Dialogs
|
2025-11-05 11:49:53 +01:00
|
|
|
|
{
|
2025-11-28 12:07:35 +01:00
|
|
|
|
public class BaseDialogViewModel : WindowViewModel
|
2025-11-05 11:49:53 +01:00
|
|
|
|
{
|
|
|
|
|
|
public event EventHandler RequestClose;
|
|
|
|
|
|
|
2025-11-28 12:07:35 +01:00
|
|
|
|
public BaseDialogViewModel() : base()
|
2025-11-05 11:49:53 +01:00
|
|
|
|
{
|
|
|
|
|
|
CloseDialogCommand = new DelegateCommand(Close);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ICommand CloseDialogCommand { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private void Close()
|
|
|
|
|
|
{
|
|
|
|
|
|
RequestClose?.Invoke(this, EventArgs.Empty);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|