Just messing around with the XNA documentation for the game class, and noticed that there was a Deactivated event and a virtual OnDeactived method that could be overridden.
Both creators of the event handler for the Deactivated event and overrides of the OnDeactived virtual method allow the client to process the game, losing focus.
I was wondering which approach should be used in general to deal with the loss of focus. Creating an event handler or overriding a virtual method? Are there differences between each approach?
c # coding-style events virtual
Ryan peschel
source share