Example #1
0
        public bool IsOnRec(int MarginMin = 0)
        {
            int StartMargin = RecSetting.GetTrueMargin(true) + 60 * MarginMin;
            int EndMargin   = RecSetting.GetTrueMargin(false);

            DateTime startTime = StartTime.AddSeconds(StartMargin * -1);
            int      duration  = (int)DurationSecond + StartMargin + EndMargin;

            return(CtrlCmdDefEx.isOnTime(startTime, duration));
        }
Example #2
0
        public DateTime EndTimeWithMargin()
        {
            int EndMargin = RecSetting.GetTrueMargin(false);

            return(StartTime.AddSeconds((int)DurationSecond + EndMargin));
        }
Example #3
0
        public DateTime StartTimeWithMargin(int MarginMin = 0)
        {
            int StartMargin = RecSetting.GetTrueMargin(true) + 60 * MarginMin;

            return(StartTime.AddSeconds(StartMargin * -1));
        }