Hi, I'm trying to develop a leap motion program in C# based on the samples in https://developer.leapmotion.com/documentation/csharp/devguide/Sample_Tutorial.html#id5
However my program showed an error message that my Controller did not include the definition of Removelistener. The SDK i used is LeapDeveloperKit_3.2.0. Could anyone give me a hint? Thanks.
The code is showed in below,
using System;
using System.Collections.Generic;
using Leap;
namespace sample
{
class Program {
static void Main(string[] args)
{
Controller controller = new Controller();
SampleListner listener = new SampleListner();
controller.Connect += listener.OnServiceConnect;
controller.Device += listener.OnConnect;
controller.FrameReady += listener.onFrame;
Console.WriteLine("Press Enter to quit...");
Console.ReadLine();
controller.RemoveListener(listener);
controller.Dispose();
}
}
}