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