Ejemplo n.º 1
0
        public InterfaceMediaPlayer()
        {
            Controller     controller = new Controller();
            SampleListener listener   = new SampleListener();

            InitializeComponent();
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            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.RemoveListner(listener);
            controller.Dispose();
        }