I have a parent class that contains an array of objects each with a timer associated with it.
I want the parent class to be able to start and stop these timers, and most importantly want the parent class to detect which of the it’s child objects ‘timer elapsed’ even has been raised.
Is this possible and if so what is the best way to do it?
I would suggest that you give the child objects an event that can be raised when the Timer is fired. Then the Parent class can attach a handler to the event from each child.
Here is some pseudo code to give you an idea of what I mean. I have purposely not shown any WinForms or Threading code, because you do not give much detail in that area.