public void Stop() { if (timer.IsRunning) { timer.Stop(); } if ((port != null) && (port.IsOpen)) { port.Close(); } }
public void Close() { port.Close(); }
public void Stop() { if (timer.IsRunning) { timer.Stop(); } if ((port != null) && (port.IsOpen)) { port.Close(); } }
public void Close() { port.Close(); }