Пример #1
0
        public int Compare(object x, object y)
        {
            // TODO:  Add WinControlContainerCollection.Compare implementation
            RectInfo m_X = x as RectInfo;
            RectInfo m_Y = y as RectInfo;

            //System.Diagnostics.Debug.Assert(m_X!=null&&m_Y!=null);
            if (m_X == null || m_Y == null)
            {
                return(0);
            }
            int m_Result = 0;

            if (m_X.Rect.Top == m_Y.Rect.Top)
            {
                m_Result = m_X.Rect.Left - m_Y.Rect.Left;
            }
            else
            {
                m_Result = m_X.Rect.Top - m_Y.Rect.Top;
            }
            return(m_Result);
        }
Пример #2
0
 public void Remove(RectInfo i_Obj)
 {
     this.InnerList.Remove(i_Obj);
 }