Search code examples
c#.netcabscsf

CAB/SCSF Command vs Events


What is the difference between the Commands and the Events in CAB? There seem to do the same thing, when is the command intent to be used and the events?


Solution

  • From a CAB point of view commands were meant to be used specifically for UI components, while events could in theory be used by any component. So commands are a more specific implementation of the event mechanism for UI menus, actions, etc...

    Below are links to an excellent article series by Rich Newman on CAB. Chapter 10 and 11 are on commmands and events in CAB.

    http://richnewman.wordpress.com/intro-to-cab-toc/

    http://richnewman.wordpress.com/2007/09/22/introduction-to-events-in-the-cab-introduction-to-cabscsf-part-11/

    http://richnewman.wordpress.com/2007/09/16/commands-in-the-cab-introduction-to-cabscsf-part-10/