Command DP |
---|
Each MenuItem is configured with an instance of a concrete Command subclass.
Decouple the object that invokes the operation from the object that knows how to perform it.
Example: Document's PASTE through the PasteCommand.
Decouple the object that invokes the operation from the object that knows how to perform it.
Example: Document's OPEN through the OpenCommand.