On page 117 in the VB version of Using CSLA.NET 3.0 I believe the code for the UnbindBindingSource helper routine doesn't match the usage in the rest of the chapter.
The second parameter is named "apply" and the usage is
if apply then
current.endedit()
Else
current.canceledit()
End If
Which is fine... but in the code for the Save, Apply, Cancel, Close button the usage is reversed. In the Save and Apply button handlers the method is called with False. In the Cancel and Close button handlers the method is called with True.
Rick...
Thanks Rick, I'll look into this as soon as I get a chance.
Rocky
rwilkerson:On page 117 in the VB version of Using CSLA.NET 3.0 I believe the code for the UnbindBindingSource helper routine doesn't match the usage in the rest of the chapter.
The second parameter is named "apply" and the usage is
if apply then
current.endedit()
Else
current.canceledit()
End IfWhich is fine... but in the code for the Save, Apply, Cancel, Close button the usage is reversed. In the Save and Apply button handlers the method is called with False. In the Cancel and Close button handlers the method is called with True.
Rick...
Thank you again Rick. The errata is
http://www.lhotka.net/Article.aspx?id=0beb2b55-7f2d-4cb9-8386-798774f92af5
And the C# errata (which is worse actually) is:
http://www.lhotka.net/Article.aspx?id=31705d87-2960-4810-b1fc-d1f5362f91bc
Rocky
From: RockfordLhotka
[mailto:cslanet@lhotka.net]
Sent: Friday, October 19, 2007 3:42 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Errata: Using CSLA.NET 3.0 (VB) Page 117
Thanks Rick, I'll look into this as soon as I get a chance.
Rocky
rwilkerson:
On page 117 in the VB version of Using CSLA.NET 3.0 I believe the code for the UnbindBindingSource helper routine doesn't match the usage in the rest of the chapter.
The second parameter is named "apply" and the usage is
if apply then
current.endedit()
Else
current.canceledit()
End IfWhich is fine... but in the code for the Save, Apply, Cancel, Close button the usage is reversed. In the Save and Apply button handlers the method is called with False. In the Cancel and Close button handlers the method is called with True.
Rick...
Copyright (c) Marimer LLC