Esempio n. 1
0
        public bool Display(List <Tuple <int, string> > messageList)
        {
            try
            {
                TDLedAccess.SS_Open_Tcp(Host, this.Args, 3000);
                XTrace.WriteLine("打开显示屏:{0}:{1}", this.Host, this.Args);

                var list = messageList.OrderBy(item => item.Item1);
                foreach (var message in list)
                {
                    var position = message.Item1;
                    TDLedAccess.SS_Send_Buffer_Ex(position, 9, 5, 5, 16, 1, message.Item2, false);
                    XTrace.WriteLine("发送内容:[{0}]{1}", position, message.Item2);
                }

                TDLedAccess.SS_Close();
                XTrace.WriteLine("关闭显示屏");
                return(true);
            }
            catch (Exception ex)
            {
                XTrace.WriteException(ex);
                return(false);
            }
        }
Esempio n. 2
0
 public bool Display(string message)
 {
     try
     {
         TDLedAccess.SS_Open_Tcp(Host, this.Args, 3000);
         TDLedAccess.SS_Send_Buffer_Ex(0, 9, 5, 5, 24, 1, message, false);
         TDLedAccess.SS_Close();
         return(true);
     }
     catch (Exception ex)
     {
         XTrace.WriteException(ex);
         return(false);
     }
 }