Example #1
0
        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));
        }
Example #2
0
        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));
        }
Example #3
0
 public int Compare(ItemThumbnail x, ItemThumbnail y)
 {
     return(DLL.StrCmpLogicalW(y.Extension, x.Extension));
 }
Example #4
0
 public int Compare(ItemThumbnail x, ItemThumbnail y)
 {
     return(DLL.StrCmpLogicalW(y.Name, x.Name));
 }
Example #5
0
 public int Compare(DirectoryInfo x, DirectoryInfo y)
 {
     return(DLL.StrCmpLogicalW(x.Name, y.Name));
 }
Example #6
0
 public int Compare(string x, string y)
 {
     return(DLL.StrCmpLogicalW(x, y));
 }