Пример #1
0
        private void SetState(MultiState mState, int stateIndex, int color, bool blink = false)
        {
            MSState mst;

            mst            = mState.GetState(stateIndex);
            mst.LowerValue = stateIndex - 1;
            //mst.UpperValue = 0.95;
            mst.Color = color;
            //mst.DefineState(0, 0, pbRed);
            mst.Blink = blink;
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Display ThisDisplay = m_App.ActiveDisplay;

            for (int i = 1; i <= ThisDisplay.SelectedSymbols.Count; i++)
            {
                Symbol s = ThisDisplay.SelectedSymbols.Item(i);
                if (s.IsMultiState)
                {
                    MultiState ms = s.GetMultiState();
                    ms.GetState(1).Color = 32768;
                    ms.ColorBadData      = 65535;
                }
            }
        }