コード例 #1
0
        public void TestLayDSCongNgheCPU()
        {
            List <myChiTietCongNgheCPUDTO> listChiTietCongNgheCPU = MyChiTietCongNgheCPUBUS.LayDSCongNgheCPU();

            Assert.IsNotNull(listChiTietCongNgheCPU);
            Assert.LessOrEqual(4, listChiTietCongNgheCPU.Count);
        }
コード例 #2
0
        private void tab_CPU_Enter(object sender, EventArgs e)
        {
            List <myChiTietCongNgheCPUDTO> danhsachCongNghe = MyChiTietCongNgheCPUBUS.LayDSCongNgheCPU();

            if (danhsachCongNghe != null && danhsachCongNghe.Count > 0)
            {
                cB_CongNghe.DataSource = danhsachCongNghe;
            }
        }