public int CompareTo(object obj)
        {
            IDrawDesignControl dc = obj as IDrawDesignControl;

            if (dc != null)
            {
                return(ZOrder.CompareTo(dc.ZOrder));
            }
            throw new ArgumentException("object is not a IDrawDesignControl");
        }
 // Support sorting based on z-order. This makes it easy
 // to paint groups of Shape controls in the right order.
 public int CompareTo(object shape)
 {
     return(ZOrder.CompareTo(((Shape)shape).ZOrder));
 }
Exemplo n.º 3
0
 public int CompareTo(LLShape other)
 {
     return(ZOrder.CompareTo(other.ZOrder));
 }