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