View Single Post
  #2 (permalink)  
Old April 17th, 2011, 09:40 AM
Rod Stephens's Avatar
Rod Stephens Rod Stephens is offline
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Sorry about that. That's an editing inconsistency. The controls started with names like chkBreakfast and later got changed to names like breakfastCheckBox, but we missed some of the event handler names. They should all be consistent.

The only time a control's event handler shouldn't use its name is when the event handler is catching events for multiple controls. In that case, it's name should represent the group of controls rather than a single one if possible.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)