Example #1
0
 /// <summary>
 /// Copy the members from an MFRect into this object
 /// </summary>
 /// <param name="from">The rectangle from which to copy the values.</param>
 public void CopyFrom(MFRect from)
 {
     left   = from.left;
     top    = from.top;
     right  = from.right;
     bottom = from.bottom;
 }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj is MFRect)
            {
                MFRect cmp = (MFRect)obj;

                return(right == cmp.right && bottom == cmp.bottom && left == cmp.left && top == cmp.top);
            }

            if (obj is Rectangle)
            {
                Rectangle cmp = (Rectangle)obj;

                return(right == cmp.Right && bottom == cmp.Bottom && left == cmp.Left && top == cmp.Top);
            }

            return(false);
        }