Skip to content

Fixed WPF example layer collection changed handler#40

Merged
FObermaier merged 1 commit into
SharpMap:Branches/1.0from
Enterwell:Branches/1.0
Feb 16, 2017
Merged

Fixed WPF example layer collection changed handler#40
FObermaier merged 1 commit into
SharpMap:Branches/1.0from
Enterwell:Branches/1.0

Conversation

@AleksandarDev

Copy link
Copy Markdown
Contributor

Collection changes were not handled properly in WPF host example.

I replaces sender with e.NewItems and e.OldItems.

If there is existing layer with the same name as added layer, new layer is ignored.
If there is no existing layer with the same name as removed layer, noting is removed from map layers.

@AleksandarDev AleksandarDev changed the title Fixed WPF example layer changed handler Fixed WPF example layer collection changed handler Dec 1, 2016

@FObermaier FObermaier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok to me, @petlof, since this is your contribution, could you review this please.

@FObermaier FObermaier merged commit 7f1c0d8 into SharpMap:Branches/1.0 Feb 16, 2017
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.

2 participants