private void Client_ErrorOccured(IIOTClient client, Exception error) { Dispatch(() => AddEvent(error)); }