public bool Display(string message) { try { var transport = TransportFactory.CreateTransport(transportType, this.Host, this.Args, 5000); var data = new SendRam().GetBytes(message); transport.Send(data); transport.Dispose(); return(true); } catch (Exception ex) { XTrace.WriteException(ex); return(false); } }
public bool Display(List <Tuple <int, string> > messageList) { try { var transport = TransportFactory.CreateTransport(transportType, this.Host, this.Args, 5000); var data = new SendRam().GetBytes( messageList.OrderBy(item => item.Item1).Select(message => message.Item2).Join(" ")); transport.Send(data); transport.Dispose(); return(true); } catch (Exception ex) { XTrace.WriteException(ex); return(false); } }