Exemplo n.º 1
0
        public int Compare(object x, object y)
        {
            BraceItem item1  = (BraceItem)x;
            Point     point1 = item1.Point;
            Point     point2 = (Point)y;

            if ((point2.Y <= point1.Y) && ((point2.Y != point1.Y) || (point2.X <= point1.X)))
            {
                return(1);
            }
            return(0);
        }
Exemplo n.º 2
0
        public int Compare(object x, object y)
        {
            BraceItem item1  = (BraceItem)x;
            Point     point1 = item1.Point;
            Point     point2 = (Point)y;
            int       num1   = point1.Y - point2.Y;

            if (num1 == 0)
            {
                num1 = point1.X - point2.X;
            }
            return(num1);
        }