Beispiel #1
0
        /// <summary>
        /// Gets or sets the <see cref="Color" /> for a specified <see cref="GridLed" />
        /// on the mouse's virtual grid.
        /// </summary>
        /// <param name="led">The <see cref="GridLed" /> to query.</param>
        /// <returns>The <see cref="Color" /> currently set for the specified <see cref="GridLed" />.</returns>
        public Color this[GridLed led]
        {
            get
            {
                return(_customGrid[led]);
            }

            set
            {
                _customGrid[led] = value;
                SetGrid(_customGrid);
            }
        }
Beispiel #2
0
        public Color this[GridLed led]
        {
            get
            {
                var row    = (int)led >> 8;
                var column = (int)led & 0xFF;
                return(this[row, column]);
            }

            set
            {
                var row    = (int)led >> 8;
                var column = (int)led & 0xFF;
                this[row, column] = value;
            }
        }
Beispiel #3
0
        /// <summary>
        /// Gets or sets the <see cref="Color" /> for a specified <see cref="GridLed" />
        /// on the mouse's virtual grid.
        /// </summary>
        /// <param name="led">The <see cref="GridLed" /> to query.</param>
        /// <returns>The <see cref="Color" /> currently set for the specified <see cref="GridLed" />.</returns>
        public Color this[GridLed led]
        {
            get
            {
                return _customGrid[led];
            }

            set
            {
                _customGrid[led] = value;
                SetGrid(_customGrid);
            }
        }