/// <summary> /// Constructor. Takes the MapView to represent, and the initial ViewArea for that map. /// </summary> /// <param name="mapView">The map view being represented.</param> /// <param name="viewArea">The initial ViewArea for that map.</param> public Viewport(IMapView <T> mapView, Rectangle viewArea) { MapView = mapView; _boundedRect = new BoundedRectangle(viewArea, MapView.Bounds()); }
/// <summary> /// Constructor. Takes the parent grid view, and the initial subsection of that grid view to represent. /// </summary> /// <param name="gridView">The grid view being represented.</param> /// <param name="viewArea">The initial subsection of that grid view to represent.</param> public Viewport(IGridView <T> gridView, Rectangle viewArea) { GridView = gridView; _boundedRect = new BoundedRectangle(viewArea, GridView.Bounds()); }