I’ve posted my new sample, Adding preferences to an extension to MDC. It includes a downloadable sample. This new example demonstrates how to add a preference dialog to an extension, as well as how to create and handle events for a popup menu.
Feel free to let me know if there’s anything that needs work. Or, you know, you could tweak the article itself. If the code needs fixing, let me know so I can get the downloadable sample fixed.