예제 #1
0
        public void Cancel()
        {
            if (Stage == CaptureMovieProcessFlowStage.Recording)
            {
                Stage = CaptureMovieProcessFlowStage.Stopped;
                State = CaptureMovieProcessFlowStates.Stop;

                PreRecordingTimer.Stop();;
                RecordingTimer.Stop();

                PreRecordingTimer = null;
                RecordingTimer    = null;

                CaptureFacede.StopCapturingVideoToFile();

                //TODO handle files left after cancel
                //File.Delete(TempFilename);

                TextBlock.Visibility = System.Windows.Visibility.Collapsed;

                IsRecording = false;
            }
            else
            {
                this.Clean();
            }
        }
예제 #2
0
        public void StopRecording()
        {
            CaptureFacede.StopCapturingVideoToFile();
            State = CaptureMovieProcessFlowStates.Stop;
            Stage = CaptureMovieProcessFlowStage.Stopped;

            PreRecordingTimer = null;
            RecordingTimer    = null;

            IsRecording = false;

            TextBlock.Visibility = System.Windows.Visibility.Collapsed;
            NewStomeMovie window = new NewStomeMovie();

            window.TempFileName           = TempFilename;
            window.FolderUponCaptureEvent = StonesView.CurrentPath;
            window.ShowDialog();
        }