public InterfaceMediaPlayer() { Controller controller = new Controller(); SampleListener listener = new SampleListener(); InitializeComponent(); }
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(); }