Example #1
0
 public static bool Compare_DonGia(SanPham u1, SanPham u2)
 {
     return(u1.DonGia >= u2.DonGia);
 }
Example #2
0
 public static bool Compare_SoLuong(SanPham u1, SanPham u2)
 {
     return(u1.SoLuong >= u2.SoLuong);
 }
Example #3
0
 public static bool Compare_TenSach(SanPham u1, SanPham u2)
 {
     return(string.Compare(u1.TenSach, u2.TenSach) >= 0);
 }
Example #4
0
 public static bool Compare_MaLS(SanPham u1, SanPham u2)
 {
     return(string.Compare(u1.MaLoaiSach, u2.MaLoaiSach) >= 0);
 }
Example #5
0
 public static bool Compare_MaTG(SanPham u1, SanPham u2)
 {
     return(string.Compare(u1.MaTacGia, u2.MaTacGia) >= 0);
 }
Example #6
0
 public static bool Compare_MaSach(SanPham u1, SanPham u2)
 {
     return(u1.MaSach >= u2.MaSach);
 }
Example #7
0
 public static bool Compare_TrangThai(SanPham u1, SanPham u2)
 {
     return(Convert.ToInt32(u1.TrangThai) < Convert.ToInt32(u2.TrangThai));
 }