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

28 lines
532 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-12-30 12:35:43 +01:00
namespace BeWo.ViewModel.View
2025-11-05 11:49:53 +01:00
{
2025-12-30 12:35:43 +01:00
public class DialogViewModel : WindowViewModel
2025-11-05 11:49:53 +01:00
{
public event EventHandler RequestClose;
2025-12-30 12:35:43 +01:00
public DialogViewModel() : base()
2025-11-05 11:49:53 +01:00
{
CloseDialogCommand = new DelegateCommand(Close);
}
public ICommand CloseDialogCommand { get; set; }
2025-12-30 12:35:43 +01:00
protected void Close()
2025-11-05 11:49:53 +01:00
{
RequestClose?.Invoke(this, EventArgs.Empty);
}
}
}