We have a winform application that has been under development for some time. It has several images and control colors that create a corporate experience. We have a second client who would like to receive the same product, but with different branding.
So, we have lines of code in the control.cs files, for example:
this.BackgroundImage = global::MyNameSpace.Properties.Resources.background;
It seems that resource files are the way to go, as I can just change the culture and have a separate resource file with different images.
But I donβt want to change the culture (I donβt want the display of dates, currencies, etc.) to change, and it just smells.
Can I change the resource file manually at runtime or compile time without changing the culture?
Is there a better way to achieve this result?
Also, how do you / can use resource files to set the colors of controls (e.g. change all backgrounds from black to red)?
source
share