Exemplo n.º 1
0
 public bool Display(string message)
 {
     try
     {
         var ledHelper = new LedHelper();
         ledHelper.Start(this.Host);
         ledHelper.AddNeimaArea(true, message);
         ledHelper.Send();
         return(true);
     }
     catch (Exception ex)
     {
         XTrace.WriteException(ex);
         return(false);
     }
 }
Exemplo n.º 2
0
 public bool Display(List <Tuple <int, string> > messageList)
 {
     try
     {
         var ledHelper = new LedHelper();
         ledHelper.Start(this.Host);
         messageList.OrderBy(item => item.Item1)
         .ToList().ForEach(message => { ledHelper.AddNeimaArea(true, message.Item2); });
         ledHelper.Send();
         return(true);
     }
     catch (Exception ex)
     {
         XTrace.WriteException(ex);
         return(false);
     }
 }