Files
BeWoPlaner/BeWo/ViewModel/View/Dialogs/DialogViewModel.cs

28 lines
538 B
C#
Raw Normal View History

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
{
public class DialogViewModel : WindowViewModel
{
public event EventHandler RequestClose;
public DialogViewModel() : base()
{
CloseDialogCommand = new DelegateCommand(Close);
}
public ICommand CloseDialogCommand { get; set; }
private void Close()
{
RequestClose?.Invoke(this, EventArgs.Empty);
}
}
}