private void BtnRetract_Click_1(object sender, EventArgs e) { if (TxtValue.Text.Length > 0) { _serialDevice.Retract(TxtValue.Text); } else { ResposeList.Invoke(new CallBackDelegatespiro(UpdateResponseUI), "pleae add id/value"); } }