private void buttonDebugLedOff_Click(object sender, EventArgs e) { byte ledNum; try { ledNum = Convert.ToByte(textBoxDebugLedOff.Text); } catch (Exception) { MessageBox.Show("Insert valid value!"); return; } com.AppendLedOff(ledNum); textBoxDebugInstructionPool.Text += "LedOff(" + ledNum + ")\r\n"; FormCustomConsole.WriteLine("LedOff(" + ledNum + ")"); }