예제 #1
0
 public bool Equals(MaskingInfo other)
 {
     return
         (ScreenSpaceAABB.Equals(other.ScreenSpaceAABB) &&
          MaskingRect.Equals(other.MaskingRect) &&
          ToMaskingSpace.Equals(other.ToMaskingSpace) &&
          CornerRadius == other.CornerRadius &&
          BorderThickness == other.BorderThickness &&
          BorderColour.Equals(other.BorderColour) &&
          BlendRange == other.BlendRange);
 }
예제 #2
0
        /// <summary>
        /// Check if screen area equals working area.
        /// </summary>
        /// <param name="screen">screen</param>
        /// <returns>true means equals, otherwise not.</returns>
        private bool ScreenAreaEqualsWorkingArea(Screen screen)
        {
            bool equals = false;

            System.Drawing.Rectangle singleScreenArea  = screen.Bounds;
            System.Drawing.Rectangle singleWorkingArea = screen.WorkingArea;
            if (singleScreenArea.Equals(singleWorkingArea))
            {
                equals = true;
            }
            return(equals);
        }