namespace WxOrder.Framework.Commons.Dialogs { /// /// An that contains from the dialog /// and the of the dialog. /// public class DialogResult : IDialogResult { /// /// The parameters from the dialog. /// public IDialogParameters Parameters { get; private set; } = new DialogParameters(); /// /// The result of the dialog. /// public ButtonResult Result { get; private set; } = ButtonResult.None; /// /// Initializes a new instance of the class. /// public DialogResult() { } /// /// Initializes a new instance of the class. /// /// The result of the dialog. public DialogResult(ButtonResult result) { Result = result; } /// /// Initializes a new instance of the class. /// /// The result of the dialog. /// The parameters from the dialog. public DialogResult(ButtonResult result, IDialogParameters parameters) { Result = result; Parameters = parameters; } } }