Example #1
0
 private void ButtonInit_Click(object sender, EventArgs e)
 {
     if (is_ok)
     {
         TimerCtl.RecStartTime = StartTimePicker.Value;
         TimerCtl.RecEndTime   = EndTimePicker.Value;
         TimerCtl.Start();
         LabelRecState.ChangeState(RecState.PENDING);
     }
     else
     {
         MessageBox.Show(Constants.TestErrorMessage);
     }
 }
Example #2
0
        private void ButtonDeInit_Click(object sender, EventArgs e)
        {
            if (is_ok)
            {
                TimerCtl.Stop();
                LabelRecState.ChangeState(RecState.STOPPED);

                if (RecCtl.IsRecording)
                {
                    RecCtl.Stop(/*RecState.STOPPED*/);
                }
            }
            else
            {
                MessageBox.Show(Constants.TestErrorMessage);
            }
        }