Example #1
0
        private void OnNewExtentRendered(IMap sender, gView.Framework.Geometry.IEnvelope extent)
        {
            if (gridView.InvokeRequired)
            {
                OnNewExtentRenderedCallback d = new OnNewExtentRenderedCallback(this.OnNewExtentRendered);
                this.Invoke(d, new object[] { sender, extent });
            }
            else
            {
                if (_viewMode == ViewMode.mapextent)
                {
                    if (_filter is ISpatialFilter)
                    {
                        ((ISpatialFilter)_filter).Geometry = extent;
                        if (sender != null && sender.Display != null)
                        {
                            ((ISpatialFilter)_filter).FilterSpatialReference = sender.Display.SpatialReference;
                        }
                    }
                    else
                    {
                        MakeFilter(extent);
                    }

                    StartWorkerThread();
                }
            }
        }
Example #2
0
 public bool TrySelect(IDisplay display, gView.Framework.Geometry.IEnvelope envelope)
 {
     return(false);
 }