Esempio n. 1
0
        void videoFileCheckTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            DateTime time = DateTime.Now.AddMinutes(-2);

            if (!FileSystemStorage.MotionImagesCapturedWhen(2, time))
            {
                DeleteVideoFileAt(time);
            }
        }
Esempio n. 2
0
        void videoFileCheckTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            DateTime time = DateTime.Now.AddMinutes(-2);

            if (Properties.Settings.Default.KeepMotionLessVideo)
            {
                return;
            }

            if (!FileSystemStorage.MotionImagesCapturedWhen(2, time))
            {
                FileSystemStorage.DeleteVideoFileAt(time);
            }
        }