Пример #1
0
        private void AddTextToProgram(int cardNum, LEDData data)
        {
            if (AddLed(cardNum))
            {
                AddProgram(cardNum);

                User_Text text = data.Text;

                text.PartInfo             = data.PartInfo;
                text.chContent            = data.Content;
                text.FontInfo.colorFont   = data.ColorFont;
                text.FontInfo.strFontName = data.FontName;
                if (!data.IsMove)
                {
                    text.MoveSet.iHoldTime = -1;
                }

                if (Programs.ContainsKey(cardNum))
                {
                    int m_iProgramIndex = (int)Programs[cardNum];
                    EQ2008.User_AddText(cardNum, ref text, m_iProgramIndex);
                }
            }
        }
Пример #2
0
 public static extern int User_AddText(int CardNum, ref User_Text pText, int iProgramIndex);