public override void callListeners(Listener listener, EventArgs aEvAr) { GestureResultEventArgs gArgs = (GestureResultEventArgs)aEvAr; GestureResultEventListener gListener = (GestureResultEventListener)listener; //call the common method defined in the interface: gListener.GestureResult(gArgs.TrackingID, gArgs.GestureName, gArgs.ConfidenceOrProgress); }
protected void onGestureResult(GestureResultEventArgs aResults) { EventHandler <GestureResultEventArgs> handler = GestureResult; if (handler != null) { handler(this, aResults); } }