protected override void OnTextChanged(EventArgs e) { base.OnTextChanged(e); byte[] Parsed = ByteOps.FormattedByteStringToByteArray(this.Text); if (Parsed != null && Parsed.Length == SetByteLength) { this.BackColor = Color.White; } else { this.BackColor = Color.PaleVioletRed; } }
public virtual byte[] GetBytes() { byte[] Parsed = ByteOps.FormattedByteStringToByteArray(this.Text); _Bytes = Parsed == null ? _Bytes : Parsed; return(_Bytes); }