private static int GetMaxXCoordinate(this ILayoutCreator layoutCreator) { return(layoutCreator.GetAllRectangles().Max(r => r.X + r.Width)); }
private static int GetMinYCoordinate(this ILayoutCreator layoutCreator) { return(layoutCreator.GetAllRectangles().Min(r => r.Y)); }