/// <summary> /// Invokes the MotionDetected event. /// </summary> /// <param name="sender">The sender. Usually "this".</param> /// <param name="motion">The newly detected motion.</param> protected void MotionHasDetected(Hand sender, MotionRecord motion) { if (MotionDetected != null) { MotionDetected(sender, motion); } }
public static void MotionDetected(Hand sender, MotionRecord motion) { Console.WriteLine("Motion detected: {0}", motion.Name); }