using System;
namespace WxOrder.Framework.Commons.Dialogs
{
///
/// Interface that provides dialog functions and events to ViewModels.
///
public interface IDialogAware
{
///
/// Determines if the dialog can be closed.
///
/// If true the dialog can be closed. If false the dialog will not close.
bool CanCloseDialog();
///
/// Called when the dialog is closed.
///
void OnDialogClosed();
///
/// Called when the dialog is opened.
///
/// The parameters passed to the dialog.
void OnDialogOpened(IDialogParameters parameters);
///
/// The title of the dialog that will show in the window title bar.
///
string Title { get; }
///
/// Instructs the to close the dialog.
///
event Action RequestClose;
}
}