private void btnInitSyris_Click(object sender, EventArgs e) { List <byte> lstByte = new List <byte>(); byte[] bytSN = Encoding.ASCII.GetBytes(txtSyrisSN.Text); lstByte.AddRange(bytSN); bytSN = Encoding.ASCII.GetBytes((cmbSyrisID.SelectedIndex + 1).ToString()); lstByte.AddRange(bytSN); byte[] bytOther = new byte[10]; lstByte.AddRange(bytOther); byte[] bytResult = lstByte.ToArray(); ((Button)sender).Enabled = false; Application.DoEvents(); PassiveCommand.InitSyris(SystemPub.ADRcp, lstByte.ToArray()); //if (!SystemPub.ADRcp.SendBytePkt(PassiveRcp.InitSyris(SystemPub.ADRcp.Address, lstByte.ToArray()))) { } ((Button)sender).Enabled = true; }