Beispiel #1
0
        private void _miCaptureOptions_Click(object sender, EventArgs e)
        {
            bool bTopMost = logWindow.TopMost;

            logWindow.TopMost = false;
            if (_captureType != CaptureType.None)
            {
                _captureType = CaptureType.None;
                _engine.StopCapture();
                UpdateScreenCaptureItems();
            }

            try
            {
                _options = _engine.ShowCaptureOptionsDialog(this, ScreenCaptureDialogFlags.None, _options, null);
                _engine.CaptureOptions = _options;
                _isHotKeyEnabled       = (_options.Hotkey == Keys.None) ? false : true;
            }
            catch (Exception ex)
            {
                if (ex.Message != "UserAbort" && ex.Message != "User has aborted operation")
                {
                    Messager.ShowError(this, ex);
                }
            }
            logWindow.TopMost = bTopMost;
        }
Beispiel #2
0
        // Options Menu - Capture Options ...
        private void _miOptionsCaptureOptions_Click(object sender, EventArgs e)
        {
            if (_captureType != CaptureType.None)
            {
                _captureType = CaptureType.None;
                _engine.StopCapture();
                UpdateMyControls();
                UpdateStatusBarText();
            }

            try
            {
                _options = _engine.ShowCaptureOptionsDialog(this, ScreenCaptureDialogFlags.None, _options, null);
                _engine.CaptureOptions = _options;
                _isHotKeyEnabled       = (_options.Hotkey == Keys.None) ? false : true;
            }
            catch (Exception ex)
            {
                if (ex.Message != "UserAbort" && ex.Message != "User has aborted operation")
                {
                    Messager.ShowError(this, ex);
                }
            }
        }