Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void uiVideoCaptureButton_Click(object sender, EventArgs e)
        {
            //uiTabbedBrowserControl.CurrentTab.Browser.InitialiseMouseTrail();
            //uiTabbedBrowserControl.CurrentTab.Browser.StartMouseTrailTimer();
            IntPtr handle = parentForm.Handle;

            if (markerWindow != null && markerWindow.Visible)
            {
                handle = markerWindow.Handle;
            }

            if (!OsirtVideoCapture.IsRecording())
            {
                OsirtVideoCapture.StartCapture(Width, Height, uiVideoCaptureButton, (uint)handle);
            }
            else
            {
                OsirtVideoCapture.StopCapture();
                //uiTabbedBrowserControl.CurrentTab.Browser.DisableMouseTrail();
            }
        }
Ejemplo n.º 3
0
 private void uiMicroPhoneRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     settings.UseMicrophone = OsirtVideoCapture.HasMicrophone() && uiMicroPhoneRadioButton.Checked;
     settings.Save();
 }
Ejemplo n.º 4
0
 private void uiStereoMixRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     settings.UseStereoMix = OsirtVideoCapture.HasStereoMix() && uiStereoMixRadioButton.Checked;
     settings.Save();
 }