Now I am coding the application, and I think that now there should be a better solution for what I am doing right now.
I have a main window that should process the program settings. Then I have additional classes and windows. For example, a language handler class and a form that handles user input necessary for the "main function".
However, so far I always had to pass the main window to each of these classes, because the language handler should be able to change the lines of the main window. And another form should also be able to transfer data to the main window.
If we assume that there will be many more classes, and each class needs a copy of the main window, this will consume a lot of resources, depending on the main size window.
So, is there a better / more efficient way to communicate between these classes.
lorenz albert
source share