The command pattern is a common software design pattern that allows you to easily encapsulate the logic needed to defer execution of a method. ... The command pattern is well suited for handling GUI interactions. It works so well that Microsoft has integrated it tightly into the Windows Presentation Foundation (WPF) stack.For more details pl read this... https://www.c-sharpcorner.com/UploadFile/851045/command-design-pattern-in-C-Sharp/