private void buttonSetColorDevice_Click(object sender, EventArgs e) { colorDialog.ShowDialog(); if (!Led.SetColorForDevice(selectedDevice, colorDialog.Color)) { MessageBox.Show($"There was an issue setting the color for {selectedDevice.ToString()}."); } }