I have a singleton Winform class that contains several buttons. Button events are handled and controlled in separate classes that have a link / instance of the singleton winform class. Thus, it is obvious that when the user clicks the buttons, the tasks associated with them are processed in the corresponding classes.
My question is that the classes that control the events are fully encapsulated, which means that no methods are required for their operation. The only thing they need is an event that should be fired, and the tasks are completed. Where should I create objects for these classes? Should I just create objects in winform at boot time? No additional interactions with objects are required; they just need an instance to observe button click events. I hope I have explained this clearly enough.
Thanks.
source share