private void buttonDebugPinSetHigh_Click(object sender, EventArgs e) { byte pinNum; try { pinNum = Convert.ToByte(textBoxDebugPinSetHigh.Text); } catch (Exception) { MessageBox.Show("Insert valid value!"); return; } com.AppendPinSetHigh(pinNum); textBoxDebugInstructionPool.Text += "PinSetHigh(" + pinNum + ")\r\n"; FormCustomConsole.WriteLine("PinSetHigh(" + pinNum + ")"); }