BusinessListBase raising double ListChanged events

BusinessListBase raising double ListChanged events

Old forum URL: forums.lhotka.net/forums/t/6170.aspx


tetranz posted on Thursday, January 15, 2009

Hi Rocky

Something I discovered and validated with RootChildGrandchildWinFormTest is that when a property is changed on a child object, ChildList fires two identical ListChanged events. It doesn't seem to be related to databinding because it happens even if it's not bound.

Ross

tetranz replied on Thursday, January 15, 2009

I should have searched first. I see I'm not the only one to notice this. http://forums.lhotka.net/forums/post/29685.aspx

RockfordLhotka replied on Tuesday, January 20, 2009

I believe I've fixed this issue, but would appreciate confirmation. You should be able to replace your BLB with the latest code in svn:

http://www.lhotka.net/cslacvs/viewvc.cgi/trunk/cslacs/Csla/BusinessListBase.cs?view=log

And I think it will now work. My unit tests showing double-events and inconsistent behavior before/after serialization are now passing at least.

Copyright (c) Marimer LLC