Exemple #1
0
        public DanhSachMayTinh DSMTTheoThuocTinh_Hang <T>(DanhSachMayTinh list, Tinh tinh, float obj, string hangSX)
        {
            DanhSachMayTinh result = new DanhSachMayTinh();

            foreach (var item in list.listMayTinh)
            {
                if (item.ThuocTinhTheoLoai <T>(tinh) == obj && String.Compare(item.HangThietBiTheoLoai <T>(), hangSX, true) == 0)
                {
                    result.Them(item);
                }
            }
            return(result);
        }
Exemple #2
0
        public DanhSachMayTinh DSMTThuocTinhLonHonX <T>(DanhSachMayTinh list, Tinh tinh, float x)
        {
            DanhSachMayTinh result = new DanhSachMayTinh();

            foreach (var item in list.listMayTinh)
            {
                if (item.ThuocTinhTheoLoai <T>(tinh) > x)
                {
                    result.Them(item);
                }
            }
            return(result);
        }