private void OptionsForm_Load(object sender, EventArgs e) { uiShowMouseTrailCheckBox.Checked = settings.ShowMouseTrail; uiShowMouseClicksCheckBox.Checked = settings.ShowMouseClick; uiDeleteCacheOnCloseCheckBox.Checked = settings.ClearCacheOnClose; uiExportHashOnCloseCheckBox.Checked = settings.ExportHashOnClose; uiBrowseLocationButton.Enabled = settings.ExportHashOnClose; uiHashFileLocationTextBox.Text = settings.HashExportLocation; uiBrowseCopyButton.Enabled = settings.CopyImage; uiCopyImgLocationTextBox.Text = settings.CopyImageLocation; uiFPSTrackBar.Value = settings.FramesPerSecond; uiEnterCreatesNewLineCheckBox.Checked = settings.EnterInCaseNotesNewLine; uiAllowMultiTabsCheckBox.Checked = settings.AllowMultipleTabs; uiHomePageTextBox.Text = settings.Homepage; uiConstabularyIconPictureBox.Image = settings.ConstabIcon.Base64ToImage(); uiMicroPhoneRadioButton.Checked = OsirtVideoCapture.HasMicrophone() && settings.UseMicrophone; uiStereoMixRadioButton.Checked = OsirtVideoCapture.HasStereoMix() && settings.UseStereoMix; uiAutoScrollNumericUpDown.Value = settings.ScrollTimer; if (OsirtVideoCapture.HasStereoMix()) { uiSteroMixStatusLabel.ForeColor = Color.Green; uiSteroMixStatusLabel.Text = "Stereo Mix found"; } else { uiSteroMixStatusLabel.ForeColor = Color.Red; uiSteroMixStatusLabel.Text = "Stereo Mix not found"; } uiStereoMixRadioButton.Enabled = OsirtVideoCapture.HasStereoMix(); uiMicroPhoneRadioButton.Enabled = OsirtVideoCapture.HasMicrophone(); }
private void uiMicroPhoneRadioButton_CheckedChanged(object sender, EventArgs e) { settings.UseMicrophone = OsirtVideoCapture.HasMicrophone() && uiMicroPhoneRadioButton.Checked; settings.Save(); }