Skip to content

Commit

Permalink
Update IDialogResult and DialogResult
Browse files Browse the repository at this point in the history
  • Loading branch information
niimima committed Aug 25, 2022
1 parent 551b455 commit 0cc89bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Forms/Prism.Forms/Services/Dialogs/DialogResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@

namespace Prism.Services.Dialogs
{
/// <summary>
/// An <see cref="IDialogResult"/> that contains <see cref="IDialogParameters"/> from the dialog
/// and the <see cref="System.Exception"/> of the dialog.
/// </summary>
internal class DialogResult : IDialogResult
{
/// <summary>
/// The exception of the dialog.
/// </summary>
public Exception Exception { get; set; }

/// <summary>
/// The parameters from the dialog.
/// </summary>
public IDialogParameters Parameters { get; set; }
}
}
11 changes: 11 additions & 0 deletions src/Forms/Prism.Forms/Services/Dialogs/IDialogResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

namespace Prism.Services.Dialogs
{
/// <summary>
/// Contains <see cref="IDialogParameters"/> from the dialog
/// and the <see cref="System.Exception"/> of the dialog.
/// </summary>
public interface IDialogResult
{
/// <summary>
/// The exception of the dialog.
/// </summary>
Exception Exception { get; }

/// <summary>
/// The parameters from the dialog.
/// </summary>
IDialogParameters Parameters { get; }
}
}

0 comments on commit 0cc89bd

Please sign in to comment.