Exemple #1
0
        //STARTS ALL NECESSARY THREADS
        private void StartLiveStreamThreads()
        {
            PickCameraForm form = new PickCameraForm();
            form.ShowDialog();

            if (form.selected_camera != null)
            {
                ThreadFactory.StartLiveStreamThreads(form.selected_camera);
            }
        }
Exemple #2
0
        private void button_camera_enroll_Click(object sender, EventArgs e)
        {
            button_camera_enroll.Enabled = false;
            ThreadFactory.StopReviewFootageThreads();
            Singleton.ClearReviewFootageDataStores();
            ThreadFactory.ReleaseAllThreadResources();

            //WHEN THIS BUTTON IS CLICKED
            //A CONFIRMATION MESSAGE BOX POPS UP
            //ON CONFIRMATION A CHECK IS MADE TO ENSURE THAT THE SYSTEM HAS ATLEAST A CAMERA CONNECTED
            //NECESSARY THREADS ARE SPAWNED
            //AND THE FRAMES ARE GRABBED FROM THE CONNECTED CAMERA

            PickCameraForm form = new PickCameraForm();
            DisableReviewControls();

            form.ShowDialog();

            if (form.selected_camera != null)
            {
                ThreadFactory.StartReviewFootageThreadsUsingCamera(form.selected_camera);
                Debug.WriteLine("Enabling review controls 1");
                EnableReviewControls();
                Debug.WriteLine("Enabling review controls 2");
            }

            Debug.WriteLine("Enabling review controls 3");
            EnableReviewControls();
        }