News

The command design pattern is a good choice when you want to implement callbacks, queuing tasks, tracking history, and undo/redo functionality in your application. The command pattern is a good ...
I believe what you are looking for is the Command pattern. It's description starts on page 233 (at least in my copy) of Design Patterns.
The command pattern is a common software design pattern that allows you to easily encapsulate the logic needed to defer execution of a method. It's commonly used to handle control actions in a unified ...
The answer: the Command design pattern. In this article, I discuss the Command pattern, sometimes known as the Action pattern, from two different perspectives.