Esempio n. 1
0
 private void microphoneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (microphoneToolStripMenuItem.Checked)
     {
         SetMicrophone dlg = new SetMicrophone();
         dlg.ShowDialog();
         if (dlg.DialogResult == DialogResult.OK)
         {
             mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity());
         }
     }
     else
     {
         mic.Stop();
     }
 }
Esempio n. 2
0
 private void microphoneToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (microphoneToolStripMenuItem.Checked)
     {
         SetMicrophone dlg = new SetMicrophone();
         dlg.ShowDialog();
         if (dlg.DialogResult == DialogResult.OK)
         {
             mic.Start(dlg.getDeviceNumber(), dlg.getSensitivity());
         }
     }
     else
         mic.Stop();
 }