How do I use the Bricscad.Windows.RibbonButton.LargeImage with V20 (string) and V21 (ImageSource) ?
Hi,
I have a Problem, I have the same code for V20 and for V21, but now the LArgeImage Property is a ImageSource in V21 and in other there were a String.
How can I write this that the both Code are doing ?
Thing for your response
Best regards
Fabrice
0
Comments
-
There are several approaches possible:
1. build separate DLLs for V20 and V21 from the same source code by using preprocessor guards (e.g. #if BCAD20/#endif and #if BCAD21/#endif)
2. use only the ImagePath property for all versions
3. use reflection at runtime to set the LargeImage property depending on its type0