private void RemoveBlur() { _detectIsActiveTimer.Enabled = false; if (_visualBlur != null) { _visualBlur.Visible = false; _visualBlur.Dispose(); _visualBlur = null; } }
private void RemoveBlur() { if (!_parentForm.IsDisposed && !_parentForm.Disposing && _parentBeforeOpacity.HasValue ) { _parentForm.Opacity = _parentBeforeOpacity.Value; _parentBeforeOpacity = null; } _detectIsActiveTimer.Enabled = false; if (_visualBlur != null) { _visualBlur.Visible = false; _visualBlur.Dispose(); _visualBlur = null; } }