private void OnConnect(ReaPi.ConnectionIdentifier connectionId) { string lastError = ""; rjConnection.ProtocolVersion = new Version(ReaPi.GetProtocolVersion(rjConnection.ConnectionID)); lastError = ReaPi.SubscribeJobSet(rjConnection.ConnectionID, 1).ToString(); lastError = ReaPi.SubscribeIOConfigurationSet(rjConnection.ConnectionID, 1).ToString(); lastError = ReaPi.GetIOOutputLevel(rjConnection.ConnectionID).ToString(); //SetOutputLevel(OutputTypeReaction.ControlDivert, OutputLevel.Low); //SetOutputLevel(OutputTypeReaction.ControlStacker, OutputLevel.Low); SendToDashboard(MessageType.LOG, "Połączenie: OK", $" Wskaźnik połączenia: {rjConnection.ConnectionID.ToString()}.", null); SendToDashboard(MessageType.ERROR, lastError, null, null); UpdateDashboard(EventType.CONNECT); }