public BlurManager(VisualForm kryptonForm, BlurValues blurValues) { _parentForm = kryptonForm; _blurValues = blurValues; _parentForm.Closing += KryptonFormOnClosing; _detectIsActiveTimer = new System.Windows.Forms.Timer { Enabled = false, Interval = 200 }; _detectIsActiveTimer.Tick += DetectIsTopMost; _blurValues.BlurWhenFocusLostChanged += BlurValues_EnableBlurChanged; _blurValues.OpacityChanged += BlurValuesOnOpacityChanged; }
public BlurManager(VisualForm kryptonForm, BlurValues blurValues) { _parentForm = kryptonForm; _blurValues = blurValues; _parentForm.Closing += KryptonFormOnClosing; _detectIsActiveTimer = new Timer { Enabled = false, Interval = 200 }; _detectIsActiveTimer.Tick += DetectIsTopMost; _blurValues.EnableBlurChanged += BlurValues_EnableBlurChanged; _blurValues.RadiusChanged += BlurValuesOnRadiusChanged; _blurValues.OpacityChanged += BlurValuesOnOpacityChanged; }