45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
|
|
using System.Windows;
|
|||
|
|
using Microsoft.Practices.Prism.Interactivity.InteractionRequest;
|
|||
|
|
|
|||
|
|
namespace DTS.Common.Dialogs
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Represents an interaction request used for confirmations.
|
|||
|
|
/// </summary>
|
|||
|
|
public class ConfirmationEx : Confirmation
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Gets or sets the type of buttons displayed in the confirmation window.
|
|||
|
|
/// </summary>
|
|||
|
|
public MessageBoxButton Buttons { get; set; } = MessageBoxButton.OKCancel;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Gets or sets the type of image displayed in the confirmation window.
|
|||
|
|
/// </summary>
|
|||
|
|
public MessageBoxImage Image { get; set; } = MessageBoxImage.Question;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Returns result of the confirmation window.
|
|||
|
|
/// </summary>
|
|||
|
|
public MessageBoxResult Result { get; set; }
|
|||
|
|
|
|||
|
|
///// <summary>
|
|||
|
|
///// The number of milliseconds before dialog auto-closes (0 = remain open).
|
|||
|
|
///// </summary>
|
|||
|
|
//public int Timeout
|
|||
|
|
//{
|
|||
|
|
// get { return _timeout; }
|
|||
|
|
// set { _timeout = value; }
|
|||
|
|
//}
|
|||
|
|
|
|||
|
|
///// <summary>
|
|||
|
|
///// Returns result of the confirmation window.
|
|||
|
|
///// </summary>
|
|||
|
|
//public MessageBoxResult TimeoutResult
|
|||
|
|
//{
|
|||
|
|
// get { return _timeoutResult; }
|
|||
|
|
// set { _timeoutResult = value; }
|
|||
|
|
//}
|
|||
|
|
}
|
|||
|
|
}
|