This project is read-only.

Commands and Events

  • The Command Design Pattern
    • SCSF Version: All
    • Description: Another article looking at some theory without direct reference to the Composite Application Block: explains the command pattern, how it relates to .NET, and why its a good thing if you’re writing menus.
  • Commands in the Composite Application Block
    • SCSF Version: All
    • Description: Shows how to use Commands in the Composite Application Block to hook up clicks on menus to their handlers. Explains why we might want to do it this way rather than with the more usual .NET approach using events. Looks at how to handle Status with Commands, the parameters passed to a CommandHandler, and discusses writing your own CommandAdapters to handle other invokers than menus. Gives a CommandAdapter example.
  • Events in the Composite Application Block
    • SCSF Version: All
    • Description: Goes into detail of what we can do with the Composite Application Block’s events: examines the handling of scope, how the EventTopics collection works, use of the ThreadOption enumeration to ensure that our event executes on the GUI thread, more flexible event handling with AddSubscription and RemoveSubscription, hooking up .NET events to CAB events with AddPublication, and how to disable CAB events.
  • Remove from UIExtensionSite
    • SCSF Version: 2.0
    • Description: Question about how to add/remove a toolstrip button to the toolbar in runtime.
  • CommandHandler
    • SCSF Version: all
    • Description: How to declare, invoke, execute and change the status of a Command.
  • Limit Command to a single instance
    • SCSF Version: all
    • Description: How to handle a global ToolStrip commands or EventBroker events, and have only the active view respond to that command/event.
  • Exception Handling and CAB
    • SCSF Version: all
    • Description: Question about a problem handling exceptions inside an event subscriber.
  • Command Question
    • SCSF Version: all
    • Description: Question about how to find out which menu item control triggered a command.
  • CAB: Solving The Active View Problem
    • SCSF Version: all
    • Description: How to handle a “global” ToolStrip commands or EventBroker events, and have only the active view respond to that command/event.
  • Command parameters?
    • SCSF Version: all
    • Description: Question about how to passing parameters by commands (anothers alternatives).

Last edited Feb 4, 2009 at 6:53 PM by mconverti, version 13

Comments

narimj Jul 4, 2012 at 6:23 PM 
CommandHandler(http://www.cabpedia.com/index.php?title=CommandHandler)

SCSF Version: all
Description: How to declare, invoke, execute and change the status of a Command

This link is dead.