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; } protected void Close() { RequestClose?.Invoke(this, EventArgs.Empty); } } }