Example #1
0
        void OnPaletteColorModeComboSelectedIndexChanged(NValueChangeEventArgs arg)
        {
            ENPaletteColorMode paletteColorMode = (ENPaletteColorMode)((NComboBox)arg.TargetNode).SelectedIndex;

            for (int i = 0; i < m_LinearGauge.Indicators.Count; i++)
            {
                ((NRangeIndicator)m_LinearGauge.Indicators[i]).PaletteColorMode = paletteColorMode;
            }

            ((NRangeIndicator)m_RadialGauge.Indicators[0]).PaletteColorMode = paletteColorMode;
        }
        void OnPaletteColorModeComboSelectedIndexChanged(NValueChangeEventArgs arg)
        {
            ENPaletteColorMode paletteColorMode = (ENPaletteColorMode)((NComboBox)arg.TargetNode).SelectedIndex;

            m_Bar.PaletteColorMode = paletteColorMode;
        }