I checked my Github repos, and unfortunately I never saved the source code for either projects.
That being said, I suggest you look into the command pattern. You can find examples and tutorials on Youtube. Building the system yourself will greatly improve your understanding of it.