private void btnImportMultis_Click(object sender, EventArgs e) { string inp = Microsoft.VisualBasic.Interaction.InputBox("Paste the raw, colon-delimited packet data here: ", "Enter packet data"); if (inp.Length == 0) { return; } inp = inp.Replace(":", ""); if (inp.Length % 2 != 0) { return; } inp = inp.Substring(4); byte[] data = new byte[inp.Length / 2]; for (int i = 0; i < inp.Length; i += 2) { data[i / 2] = Convert.ToByte(inp.Substring(i, 2), 16); } //no need to decrypt since it's init data OldPacket pkt = new OldPacket(data); pkt.Skip(3); txtDMulti.Text = pkt.GetByte().ToString(); txtEMulti.Text = pkt.GetByte().ToString(); _packetProcessActions.SetEncodeMultiples(pkt.Get()[5], pkt.Get()[6]); }