Пример #1
0
        private void btnAddComment_Click(object sender, EventArgs e)
        {
            var resumeRecording = false;

            if (_recorder.State == Internal.RecorderState.Recording)
            {
                Pause();
                resumeRecording = true;
            }

            using (var form = new CommentForm())
            {
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    _recorder.AddComment(form.Comment);
                }
            }

            if (resumeRecording)
            {
                Record();
            }
        }