I cant quite think of a good way to achieve the following:
- I have a base window class
SlimWindow
which inherits from some 3rd party window (Devexpress) - I have a base dialog window
SlimDialogWindow
which inherits fromSlimWindow
- I have a base window for certain class of windows
ModuleWindow
which inherits fromSlimWindow
- I now need to have 2 sets of windows - one are that behave the same as
SlimDialogWindow
and another that behave like both -SlimDialogWindow
andModuleWindow
. Lets say currently there are 10 windows inherit fromSlimDialogWindow
- I need to split them to 6 to behave likeSlimDialogWindow
+ModuleWindow
and 4 to behave likeSlimDialogWindow
SlimDialogWindow
+ ModuleWindow
vs pure SlimDialogWindow
- pure dialog is just a window with OK/Cancel buttons and some other functionality, ModuleWindow
- sets some properties - e.g. remove it from task bar and alt-tab plus some other stuff.
How to make it work?