Beispiel #1
0
 private void chkEnablePreview_CheckedChanged(object sender, EventArgs e)
 {
     if (((CheckBox)sender).Checked)
     {
         m_engine.startPreview();
     }
     else
     {
         m_engine.stopPreview();
     }
 }
Beispiel #2
0
 private void CheckBox_Checked(object sender, EventArgs e)
 {
     if (((System.Windows.Controls.CheckBox)sender).IsChecked == true)
     {
         m_engine.enableVideo();
         m_engine.startPreview();
         videoCell.Visibility = Visibility.Visible;
         SwitchAudioRecording();
     }
     else if (((System.Windows.Controls.CheckBox)sender).IsChecked == false)
     {
         m_engine.disableVideo();
         m_engine.stopPreview();
         videoCell.Visibility = Visibility.Collapsed;
         SwitchAudioRecording();
     }
 }