示例#1
0
        void UpdateEpcList(object o)
        {
            operateMessage msg = (operateMessage)o;

            if (msg.status == "fail")
            {
                MessageBox.Show("出现错误:" + msg.message);
                this.bGettingTag    = false;
                this.btnGetTag.Text = "扫描";
                return;
            }
            string value = msg.message;

            //把读取到的标签epc与产品的进行关联
            Debug.WriteLine(string.Format(
                                "UpdateEpcList -> epc = {0}"
                                , value));
            this.LinkEPCToProduct(value);
        }
示例#2
0
        void UpdateStatus(object o)
        {
            operateMessage msg = (operateMessage)o;

            if (msg.status == "fail")
            {
                MessageBox.Show("出现错误:" + msg.message);
                return;
            }
            string value = msg.message;

            if (this.statusLabel.InvokeRequired)
            {
                this.statusLabel.Invoke(new deleUpdateContorl(UpdateStatusLable), value);
            }
            else
            {
                UpdateStatusLable(value);
            }
        }
示例#3
0
        void UpdateEpcList(object o)
        {
            operateMessage msg = (operateMessage)o;

            if (msg.status == "fail")
            {
                MessageBox.Show("出现错误:" + msg.message);
                this.bGettingTag  = false;
                this.btnScan.Text = "扫描";
                return;
            }
            string value = msg.message;

            //把读取到的标签epc与产品的进行关联
            if (this.dgvProductInfo.InvokeRequired)
            {
                this.dgvProductInfo.Invoke(new deleUpdateContorl(LinkEPCToProduct), value);
            }
            else
            {
                this.LinkEPCToProduct(value);
            }
        }