Пример #1
0
        private void SendToSelector(int floor)
        {
            byte bx         = 0x00;
            var  b41        = (byte)(bx | floor);
            var  handBuffer = Funs.InitArray(8, 0x00);
            var  total      = Package.CardDataSendToLiftPackage(0, handBuffer, b41);

            this.Dispatcher.BeginInvoke(new Action(() =>
            {
                BarcodeFloor  = "楼层:" + floor;
                var animation = OpacityAnimation();
                tbBarcode.BeginAnimation(Label.OpacityProperty, animation);
            }));
            var bsend = SerialPortOperate.SendData(total);

            if (bsend)
            {
                //Log("自动权限层:{0} {1}", b41.ToHex(), floor);
                //Log("长度:{0}", total.Length);
                Log("发送数据:{0}", total.ToHex());
            }
        }