I am trying to refactor my code by imposing a design pattern in my code. The scenario is as follows:
For a desktop appl