public int Compare(ItemThumbnail x, ItemThumbnail y) { if (x.Dimension == null) { return(-1); } string xs = (x.Dimension.Width * x.Dimension.Height).ToString(); string ys = (y.Dimension.Width * y.Dimension.Height).ToString(); return(DLL.StrCmpLogicalW(ys, xs)); }
public int Compare(ItemThumbnail x, ItemThumbnail y) { if (x.Dimension == null && y.Dimension != null) { return(DLL.StrCmpLogicalW("0", (y.Dimension.Width * y.Dimension.Height).ToString())); } else if (x.Dimension != null && y.Dimension == null) { return(DLL.StrCmpLogicalW((x.Dimension.Width * x.Dimension.Height).ToString(), "0")); } else if (x.Dimension == null && y.Dimension == null) { return(DLL.StrCmpLogicalW("0", "0")); } string xs = (x.Dimension.Width * x.Dimension.Height).ToString(); string ys = (y.Dimension.Width * y.Dimension.Height).ToString(); return(DLL.StrCmpLogicalW(xs, ys)); }
public int Compare(ItemThumbnail x, ItemThumbnail y) { return(DLL.StrCmpLogicalW(y.Extension, x.Extension)); }
public int Compare(ItemThumbnail x, ItemThumbnail y) { return(DLL.StrCmpLogicalW(y.Name, x.Name)); }
public int Compare(DirectoryInfo x, DirectoryInfo y) { return(DLL.StrCmpLogicalW(x.Name, y.Name)); }
public int Compare(string x, string y) { return(DLL.StrCmpLogicalW(x, y)); }