コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public virtual byte[] GetBytes()
 {
     byte[] Parsed = ByteOps.FormattedByteStringToByteArray(this.Text);
     _Bytes = Parsed == null ? _Bytes : Parsed;
     return(_Bytes);
 }