private void OnCommunicationStarted(object sender, EventArgs e) { this.BeginInvoke(new Action(() => { connectionButton.Text = "Link active"; connectionButton.BackColor = Color.Green; foreach (GenericAbstractDevice device in devices) { device.Enabled = true; } comms.QueueDeviceUpdate(versioning); })); }