public void SetCupInfo(int index, CupInfo info)
        {
            Debug.Assert(index > -1 && index < _cupBtnArr.Count);

            CupButton cup = _cupBtnArr[index] as CupButton;

            cup.CupInfo.SampleID = info.SampleID;
            cup.CupInfo.Barcode  = info.Barcode;
        }
Exemplo n.º 2
0
        }                                   //表示样本槽是否插上

        public CupButton()
        {
            IsSlotOn = false;
            Enabled  = false;
            State    = TestState.Idle;
            _info    = new CupInfo();

            Font = new System.Drawing.Font("YaHei Consolas Hybrid", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
        }