Exemplo n.º 1
0
 /// <summary>
 /// Determines whether two area sizes are equal.
 /// </summary>
 /// <param name="displayAreaSize">
 /// The area size to compare.
 /// </param>
 /// <returns>
 /// A value indicating whether two area sizes are equal.
 /// </returns>
 internal bool Equals(DisplayAreaSize displayAreaSize)
 {
     return this.width == displayAreaSize.width && this.height == displayAreaSize.height;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DisplayArea"/> struct.
 /// </summary>
 /// <param name="topLeftCornerPosition">
 /// The top left corner position.
 /// </param>
 /// <param name="size">
 /// The display area size.
 /// </param>
 internal DisplayArea(DisplayPosition topLeftCornerPosition, DisplayAreaSize size)
 {
     this.topLeftCornerPosition = topLeftCornerPosition;
     this.size = size;
 }