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

Messagebox #62

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Messagebox #62

wants to merge 8 commits into from

Conversation

nazarenomanco
Copy link
Member

@nazarenomanco nazarenomanco commented Jan 18, 2019

Added the possibility to show a MessageBox from ViewModel with message

Related to #63

@nazarenomanco nazarenomanco requested a review from a team as a code owner January 18, 2019 17:46
Copy link
Member

@mauroservienti mauroservienti left a comment

Choose a reason for hiding this comment

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

There are a couple more things that need to be changed, reviewing them from the iPad is not easy tho.

@nazarenomanco
Copy link
Member Author

@mauroservienti done !

/// <summary>
/// Return value for the Message Box Open Request
/// </summary>
public class ShowMessageBoxResult
Copy link
Member

Choose a reason for hiding this comment

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

delete this file.

/// <summary>
///
/// </summary>
public Action<MessageBoxResult> MessageBoxClosed { get; set; }
Copy link
Member

Choose a reason for hiding this comment

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

rename this to OnMessageBoxClosed

/// <param name="broker"></param>
public ShowMessageBoxRequestHandler(IMessageBroker broker)
{
Ensure.That(broker).Named(() => broker).IsNotNull();
Copy link
Member

Choose a reason for hiding this comment

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

do not use the labda, it's too slow. Replace with .Named("broker") or better yet .Named(nameof(broker)).

public MessageBoxOptions? Options { get; set; }

/// <summary>
///
Copy link
Member

Choose a reason for hiding this comment

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

Missing documentation 😄

Message box closed callback, invoked when the message box is closed by the user.

@mauroservienti
Copy link
Member

This needs to be recreated in Radical.Windows as soon as RadicalFx/Radical.Windows#111 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants