private static void OnSerialPortConnection(string portname) { SerialPortConnection?.Invoke(portname); }