Exemple #1
0
        static void Main(string[] args)
        {
            Controller     controller = new Controller();
            SampleListener listener   = new SampleListener();

            controller.Connect    += listener.OnServiceConnect;
            controller.Device     += listener.OnConnect;
            controller.FrameReady += listener.OnFrame;

            Console.WriteLine("Press Enter to quit...");
            Console.ReadLine();

            controller.Dispose();
            listener.Dispose();
        }