Example #1
0
        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormOptionsDialog form = new FormOptionsDialog();

            if (form.ShowDialog() == DialogResult.OK)
            {
                _audioFrame.IsDetectingEvents  = form.IsDetectingEvents;
                _audioFrame.AmplitudeThreshold = form.AmplitudeThreshold;
            }
        }
 private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FormOptionsDialog form = new FormOptionsDialog();
     if (form.ShowDialog() == DialogResult.OK)
     {
         _audioFrame.IsDetectingEvents = form.IsDetectingEvents;
         _audioFrame.AmplitudeThreshold = form.AmplitudeThreshold;
     }
 }