示例#1
0
        public static FaceRecognitionProgressThread CreateFaceRecogProgressThread()
        {
            face_recog_progress   = new FaceRecognitionProgressThread();
            face_recog_progress_2 = new FaceRecognitionProgressThread();
            face_recog_progress.StartWorking();
            face_recog_progress_2.StartWorking();

            return(face_recog_progress);
        }
示例#2
0
        public void FaceRecognitionProgressThreadDoWorkTest()
        {
            MainWindow window = new MainWindow();

            Nkujukira.Demo.Singletons.Singleton.InitializeStuff();
            FaceRecognitionProgressThread thread = new FaceRecognitionProgressThread();

            thread.StartWorking();
            Assert.IsTrue(thread.IsRunning());
            thread.RequestStop();
        }