Ejemplo n.º 1
0
        private void TimeVerifier(object sender, ElapsedEventArgs e)
        {
            var current_time = DateTime.Now.ToString(Constants.ComparisonPattern);

            if (current_time == RecStartTime.ToString(Constants.ComparisonPattern))
            {
                rec.Start();
                LabelRecState.ChangeState(RecState.RECORDING);
            }
            else if (current_time == RecEndTime.ToString(Constants.ComparisonPattern))
            {
                rec.Stop();
                LabelRecState.ChangeState(RecState.FINISHED);
            }
        }