This question has been asked before but without an answer. I am in the same boat and would like to try my luck again. It seems to be quite fundamental.
Say, I have two events, one event is "Certain Key pressed", the other event is "Data Arrived". I am handling "Data Arrived" event in its event handler to process the data, I want to do something special when the "Certain Key Pressed" event is fired.
One way to handle this is to have some kind of flag, the flag is set in the "Certain Key Pressed" event handler. And the flag is checked in the "Data Arrived" event handler.
I am wondering if there is a more elegant or standard way of handling situations when two or more events have to be fired for an action to occur.
Thanks!!!