Hi,
while developing application that supports plug-ins, I am wondering what is the best approach to allow plug-ins to create its own menu entries in interface, add menu options to existing menus, add certain options to configuration dialog of application, that kind of stuff, and, how to handle saving those changes? If plug-in has knowledge of options it has added to form, how should it handle saving those modified options?
I believe it would be better approach to expose generic methods like GetMenuOptions() or GetConfigurationOptions(), something along the lines, so that host application actually manipulates those things, instead of passing menustrip object or config form object to plugin for it to modify? Am I on the right track, design-wise? Is there some common pattern for that?
Platform/language: .net/c#
Thanks!