public void TestConnectionListener()
        {
            MockConnectionListener listener = new MockConnectionListener();

            m_table.AddConnectionListener(listener, true);

            Thread.Sleep(20);
            m_table.RemoveConnectionListener(listener);

            Assert.Pass("If we have gotten here without an exception we pass. Cannot test more without a remote.");
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            table.AddTableListener(this, true);
            table.AddConnectionListener(this, true);
            stream.NewFrame         += new NewFrameEventHandler(Video_NewFrame);
            stream.VideoSourceError += new VideoSourceErrorEventHandler(Video_VideoSourceError);
            this.Closed             += MainWindow_Closed;
            stream.Start();
#if DEBUG
            VersionLabel.Content = "DEBUG";
#else
            VersionLabel.Content = "RELEASE";
#endif
        }