public static SerialService Start() { if (_Singleton == null) _Singleton = new SerialService(Settings.Default.SerialName,Settings.Default.SerialBaudRate); return _Singleton; }
public static void Stop() { _Singleton.Close(); _Singleton = null; Status = false; ErrorMessage = string.Empty; }