I have a program with the following design
- A couple of separate classes, each implementing one type of algorithm
- A windows form interface for providing input to run different algorithms AND Speech Commands to do exactly the same.
- Each algorithm is run by clicking a separate button
- Each algorithm raises some events (specific to the algorithms)
- The event listeners in turn outputs through
- The labels on the form AND through the speech API, speaks the results using speakers
The problem I am facing is that while debugging, if something goes wrong in one algorithm, other algorithms get initiated automatically sometimes. I want to be able to know what event listeners are registered with some event if any, at any point in time. I am using VS2008 with C#.
I also want to know if we use a Timer as a local variable and add an event listener to that timer in each class. Is is possible that the timer of one class triggers the listeners in other classes. I am new to this event listeners stuff, and not sure if I am missing some basic information that led me asking this question or its a problem with some ground.