private byte[] GetUserData() { if (txtUIData.Text.Length == 0) { return(new byte[0]); } if (chkAsciiData.Checked) { return(Encoding.GetEncoding("gb2312").GetBytes(txtUIData.Text)); } else { return(HelperTools.SplitHexText(txtUIData.Text)); } }
public byte[] GetAuthenticationKeys() { return(HelperTools.SplitHexText(txtAuthKeys.Text)); }