ARCed.UI.DockPanel.IsClipRectsChanged C# (CSharp) Method

IsClipRectsChanged() private method

private IsClipRectsChanged ( Rectangle clipRects ) : bool
clipRects System.Drawing.Rectangle
return bool
        private bool IsClipRectsChanged(Rectangle[] clipRects)
        {
            if (clipRects == null && this.m_clipRects == null)
                return false;
            else if ((clipRects == null) != (this.m_clipRects == null))
                return true;

            foreach (Rectangle rect in clipRects)
            {
                bool matched = false;
                foreach (Rectangle rect2 in this.m_clipRects)
                {
                    if (rect == rect2)
                    {
                        matched = true;
                        break;
                    }
                }
                if (!matched)
                    return true;
            }

            foreach (Rectangle rect2 in this.m_clipRects)
            {
                bool matched = false;
                foreach (Rectangle rect in clipRects)
                {
                    if (rect == rect2)
                    {
                        matched = true;
                        break;
                    }
                }
                if (!matched)
                    return true;
            }
            return false;
        }