Skip to content

Commit

Permalink
Merge pull request #2761 from niimima/master
Browse files Browse the repository at this point in the history
Update IDialogResult and DialogResult
  • Loading branch information
brianlagunas authored Aug 27, 2022
2 parents 551b455 + 8783540 commit 839fda8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 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,15 @@

namespace Prism.Services.Dialogs
{
/// <summary>
/// Provides information about a dialog that has been closed.
/// </summary>
internal class DialogResult : IDialogResult
{
/// <inheritdoc />
public Exception Exception { get; set; }

/// <inheritdoc />
public IDialogParameters Parameters { get; set; }
}
}
10 changes: 10 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,19 @@

namespace Prism.Services.Dialogs
{
/// <summary>
/// Represents a class that returns information about a dialog that has been closed.
/// </summary>
public interface IDialogResult
{
/// <summary>
/// Gets the exception of the dialog.
/// </summary>
Exception Exception { get; }

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

0 comments on commit 839fda8

Please sign in to comment.