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

Some progressbar dialog fixes #2150

Merged
merged 5 commits into from
Oct 2, 2015
Merged

Some progressbar dialog fixes #2150

merged 5 commits into from
Oct 2, 2015

Conversation

bigworld12
Copy link
Contributor

i think this is how progressbar dialog should be , removed the obsolete from IsOpen property and made it read only , also added cancelled event

…elled event , also made IsCancelled read only

Note : this isn't a breaking change , only the read only properties might be breaking
/// Gets if the wrapped ProgressDialog is open.
/// </summary>
public bool IsOpen { get { return m_isopen; } }
private bool m_isopen;
Copy link
Member

Choose a reason for hiding this comment

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

why this change? IsOpen is already marked as obsolete, so this is not necessary...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i use IsOpen to check if the dialog is visible so i close it programmatically , so it filled vs with warnings of it being obsolete

/// <summary>
/// This event is raised when the associated <see cref="ProgressDialog"/> was cancelled by the user.
/// </summary>
public event EventHandler Cancelled;
Copy link
Member

Choose a reason for hiding this comment

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

;-) -> Canceled

Copy link
Contributor

Choose a reason for hiding this comment

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

Typical Americanism. Everywhere else in the world it's cancelled (with double l).

http://grammarist.com/spelling/cancel/

Though, sticking with one convention is best. (and it seems MS prefers us english :))

punker76 added a commit that referenced this pull request Oct 2, 2015
@punker76 punker76 merged commit f3270c3 into MahApps:master Oct 2, 2015
@bigworld12 bigworld12 deleted the some-progressbar-dialog-fixes branch October 2, 2015 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants