EventHandlers in .NET usually have the form
void MyEventHandler(object sender, EventArgs e) { ... }
An argument senderis the object in which the event occurred. Since it can be anything, the object is used. The EventArgs argument is usually either itself System.EventArgsor its subclass. In your case, this is a subclass.
source
share