just to be clear, this is my project struture.
ProjectMain:
-> RibbonController.cs (has GetcustomUI() and returns xml with multiple buttons, not dynamic ones though, and OnAction events for buttons inside ribbon)
-> ProjectHandler.cs (loads one of the projects dynamically based on selected workbook)
Project A:
-> some function to be called which shows a form and other stuff
Project B:
-> different set of functionalities etc
what I tried:
1. created interface in ProjectMain and asked Project A and B to implement with some common functionality.
2. Called those interface functions in ribboncontroller events
3. loaded projects dynamically and its all working fine.
Issue:
as each project is not same, B has additional functionality A doesnt required and as per my model, A needs to implement my interface even its not required.
Is it possible to have ribbon and functionality of buttons managed in Projects A and B itself and from ProjectMain I can simply load those ribbons?
(same question incase of any excel functions are there in project A and B)