I have a plugin that loads some resources when it first initializes, the idea being that I want the plugin to stay active throughout the session to capture document events.
My plugin also has some commands. When a command runs I would like to access the resources in the plugin - specifically some of the properties and methods, but I’m not sure the best way to do this… Any pointers?
Thank you Steve. That works like a charm with one lingering doubt:
I’m relatively new to C#, but finding it quite fun, fast and powerful.
One thing that is confusing me, however, is understanding when I am getting an actual object (in this case a Plugin), or a reference to an object.
Am I correct that I am getting a reference to the plugin that owns the command, and not a new Plugin object? There is nothing in the documentation that tells me this, so perhaps this is a C# assumption I should be aware of?