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

28 lines
530 B
C#

using DevExpress.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace BeWo.ViewModel.View
{
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);
}
}
}