Ejemplo n.º 1
0
        private bool AddSingleTextToProgram(int cardNum, LEDData data)
        {
            if (AddLed(cardNum))
            {
                AddProgram(cardNum);

                User_SingleText singleText = data.SingleText;

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

                if (Programs.ContainsKey(cardNum))
                {
                    int m_iProgramIndex = (int)Programs[cardNum];
                    EQ2008.User_AddSingleText(cardNum, ref singleText, m_iProgramIndex);
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public static extern int User_AddSingleText(int CardNum, ref User_SingleText pSingleText, int iProgramIndex);