public override void callListeners(Listener listener, EventArgs aEvAr) { TrackingIDsChangedEventArgs tArgs = (TrackingIDsChangedEventArgs)aEvAr; TrackingIDsChangedEventListener tListener = (TrackingIDsChangedEventListener)listener; //call the common method defined in the interface: tListener.TrackingIDsChanged(tArgs.TrackingIDs); }
protected void onTrackingIDsChanged(TrackingIDsChangedEventArgs aTrackingIDs) { EventHandler <TrackingIDsChangedEventArgs> handler = TrackingIDsChanged; if (handler != null) { handler(this, aTrackingIDs); } }