Example #1
0
 private void SafelySend(string msg)
 {
     try
     {
         port.SendData(msg);
         timer.Start();
         if (LogEvent != null)
         {
             LogEvent(this, new LogEventArgs(LogLineType.INFO, string.Format(">> {0}", msg)));
         }
     }
     catch (Exception ex)
     {
         if (LogEvent != null)
         {
             LogEvent(this, new LogEventArgs(LogLineType.ERROR, ex));
         }
     }
 }
Example #2
0
 public void SendRawCommand(string command)
 {
     port.SendData(command);
 }