protected bool RequestUpdate(Extent viewExtent, bool forceRefresh) { if (!this.ParentServiceConnected) { return(false); } Extent extent = Extent.Intersect(viewExtent, this.BoundaryExtent); if (!extent.IsValid()) { return(false); } if (string.IsNullOrEmpty(extent.SpatialReference)) { extent.SpatialReference = this.BoundaryExtent.SpatialReference; } if (!forceRefresh && this.CurrentExtent != null && this.CurrentExtent.Equals(extent)) { return(false); } if (!this.ParentDataset.ParentDocument.Editor.IsQuiescent && DocUtil.GetDimensionalInputEnabled()) { return(false); } this.RequestNewRaster(extent); this.OutstandingRequestInfo = viewExtent; return(true); }
protected bool RequestUpdateNow() { if (!this.ParentServiceConnected) { return(false); } Extent extent = new Extent(this.ParentDataset.ParentDocument); Extent extent2 = Extent.Intersect(extent, this.BoundaryExtent); if (!extent2.IsValid()) { return(false); } this.RequestNewRasterNow(extent2); this.OutstandingRequestInfo = extent; return(true); }