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