Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update IDialogResult and DialogResult #2761

Merged
merged 3 commits into from
Aug 27, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 returns information about a dialog that has been closed.
Copy link
Member

@brianlagunas brianlagunas Aug 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a copy/paste issue. Please remove the extra "returns" word.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// </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; }
}
}