1

I wanted to know do events have a priority in being fired or they are fired in the order they were registered? For example I have a table and has two events on it,SelectionChanged and MouseClick,which one fires first if I click on a row?

armin
  • 1,985
  • 6
  • 38
  • 52

3 Answers3

1

See the class EventQueue. This class has all what you need, including the origin event (mouse or key event) for your selection event.

Sergiy Medvynskyy
  • 11,160
  • 1
  • 32
  • 48
0

if the order of firing the events is important for You, just set up a chain of listeners, ie Listener one will notify listener two etc, so you could handle the order.

Also check this for more information:

Another question

Community
  • 1
  • 1
Tafari
  • 2,639
  • 4
  • 20
  • 28
0

personally, I think Observer pattern is usefully for your,it's deserved.

shadow
  • 94
  • 7