Esempio n. 1
0
        public void Initialize(GlowingButton button)
        {
            _button = button;
            _button.onKeyStateChanged += OnKeyStateChanged;

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(isWindowMaximized);
            });

            _button.ledFunction = _defaultLedFunction;
        }
        public void Initialize(GlowingButton button)
        {
            _button = button;
            _button.onKeyStateChanged += OnKeyStateChanged;

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(_button.key || _hasSavedData);
            });

            _button.ledFunction = _defaultLedFunction;

            DeleteStoredDataButtonHandler.RegisterDeleter(this);
        }
Esempio n. 3
0
        public void Initialize(GlowingButton button)
        {
            _button = button;
            _button.onKeyStateChanged += OnKeyStateChanged;

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(_button.key ||
                       (_hasSavedData && ((areObjectsSelected && LedFunctions.LedFlashing.slow.GetLedState(button)) || !areObjectsSelected)));
            });

            _button.ledFunction = _defaultLedFunction;

            DeleteStoredDataButtonHandler.RegisterDeleter(this);
        }
        public void Initialize(GlowingButton button)
        {
            _button = button;
            _button.onKeyStateChanged += OnKeyStateChanged;

            _defaultLedFunction = new LedFunctions.LedDelegate(() =>
            {
                return(_button.key ||
                       (isWindowFocused && LedFunctions.LedFlashing.slow.GetLedState(button)) ||
                       (_hasSavedData && !isWindowFocused));
            });

            _button.ledFunction = _defaultLedFunction;

            DeleteStoredDataButtonHandler.RegisterDeleter(this);

            if (!string.IsNullOrEmpty(_focusedWindowTypeName) && _hasSavedData)
            {
                _focusedWindowType = System.Type.GetType(_focusedWindowTypeName);
            }
        }