Ejemplo n.º 1
0
        public void UpdateList(TagReadData[] trds)
        {
            int onceNums = 0;

            NormalModeDashBoard info = _normalModeInfo;
            long start = DateTime.Now.Millisecond;

            long cur = DateTime.Now.Millisecond;

            info.OnceTime  = cur - start;
            info.TotalTime = cur - mReadBeginTime;



            foreach (TagReadData trd in trds)
            {
                onceNums += trd.ReadCount;
                UpdateList(trd);
            }

            TotalNum          = onceNums;
            info.OnceNum      = onceNums;
            info.NumPerSecond = (int)(TotalNum * 1000 / info.TotalTime);
            info.OnceCount    = trds.Length;
            info.TotalCount   = TagMap.Count;

            UpdateDashBoard();
            UpdateRecyclerView();
        }
Ejemplo n.º 2
0
        private void UpdateDashBoard()
        {
            MainThread.BeginInvokeOnMainThread(() => {
                NormalModeDashBoard info = _normalModeInfo;
                _onceCntTv.Text          = info.OnceCount + "";
                _onceNumTv.Text          = info.OnceNum + "";
                _onceTimeTv.Text         = info.OnceTime + "ms";

                if (info.TotalTime > 500)
                {
                    _totalCntTv.Text     = info.TotalCount + "";
                    _totalNumTv.Text     = TotalNum + "";
                    _totalTimeTv.Text    = info.TotalTime + "ms";
                    _averageSpeedTv.Text = info.NumPerSecond + "pcs/s";
                }
            });
        }