I would do some research on the web. You will find implementations and then apply these to your own work.
Here is an interesting article: http://www.codeproject.com/Articles/115978/An-implementation-of-Command-pattern-in-C
And this one may be of help too: http://stackoverflow.com/questions/15047/looking-for-example-of-command-pattern-for-ui
Hope this gets you started.
Jack Poorte, Jan 09, 2016