예제 #1
0
        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;
        }
예제 #2
0
        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;
        }