Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            liveData = new NetworkDataAccess(true, "Video", "Siz");
            liveData.setListenerSettings(AppSettingsController.GetAppSetting("receiveFromAddress", "127.0.0.1"), AppSettingsController.GetAppSetting("ListenPort", 11000));

            recordedData = new NetworkDataAccess(false, "DB_Video", "DB_Siz");
            recordedData.setListenerSettings(AppSettingsController.GetAppSetting("receiveFromAddressDB", "127.0.0.1"), AppSettingsController.GetAppSetting("ListenPortDB", 11001));

            displaying = new Thread(this.Display);
            buffering  = new Thread(this.FillBuffer);

            this.resetProgress(1, 1);

            displayingDB = new Thread(this.DisplayDB);
            bufferingDB  = new Thread(this.FillBufferDB);

            this.resetProgressDB(1, 1);

            CheckForIllegalCrossThreadCalls = false;


            SetDoubleBuffered(pbFrame);
            SetDoubleBuffered(pbFrameDB);
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            liveData = new NetworkDataAccess(true, "Video", "Siz");
            liveData.setListenerSettings(AppSettingsController.GetAppSetting("receiveFromAddress", "127.0.0.1"), AppSettingsController.GetAppSetting("ListenPort", 11000));

            recordedData = new NetworkDataAccess(false, "DB_Video", "DB_Siz");
            recordedData.setListenerSettings(AppSettingsController.GetAppSetting("receiveFromAddressDB", "127.0.0.1"), AppSettingsController.GetAppSetting("ListenPortDB", 11001));

            displaying = new Thread(this.Display);
            buffering = new Thread(this.FillBuffer);

            this.resetProgress(1,1);

            displayingDB = new Thread(this.DisplayDB);
            bufferingDB = new Thread(this.FillBufferDB);

            this.resetProgressDB(1, 1);

            CheckForIllegalCrossThreadCalls = false;

            SetDoubleBuffered(pbFrame);
            SetDoubleBuffered(pbFrameDB);
        }