예제 #1
0
        public InterfaceMediaPlayer()
        {
            Controller     controller = new Controller();
            SampleListener listener   = new SampleListener();

            InitializeComponent();
        }
예제 #2
0
파일: Sample.cs 프로젝트: levuoj/Musleap
        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();
        }