コード例 #1
0
        //Here comes icon management methods

        private void SetEtcIcons()
        {
            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons() called");
            SoundGraphDisplay.EtcIcons newEtcIcons = SoundGraphDisplay.EtcIcons.None;

            if (MiniDisplayHelper.MPStatus.Media_IsRecording)
            {
                newEtcIcons |= SoundGraphDisplay.EtcIcons.Recording;
            }

            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons(): determined media type: " + newEtcIcons);

            if (_currentEtcIcons != newEtcIcons)
            {
                Log.Info("(IDisplay) ImonLcd.SetEtcIcons(): new settings found, call API");
                SoundGraphDisplay.IDW_SetLcdEtcIcon((byte)newEtcIcons);
                _currentEtcIcons = newEtcIcons;
            }
            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons() completed");
        }
コード例 #2
0
        //Here comes icon management methods

        private void SetEtcIcons()
        {
            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons() called");
            SoundGraphDisplay.EtcIcons newEtcIcons = SoundGraphDisplay.EtcIcons.None;

            if (MiniDisplayHelper.MPStatus.Media_IsRecording)
            {
                newEtcIcons |= SoundGraphDisplay.EtcIcons.Recording;
            }

            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons(): determined media type: " + newEtcIcons);

            if (_currentEtcIcons != newEtcIcons)
            {
                Log.Info("(IDisplay) ImonLcd.SetEtcIcons(): new settings found, call API");
                SoundGraphDisplay.IDW_SetLcdEtcIcon((byte)newEtcIcons);
                _currentEtcIcons = newEtcIcons;
            }
            SoundGraphDisplay.LogDebug("(IDisplay) ImonLcd.SetEtcIcons() completed");
        }