void ShrinkSpatialIndex_Click(object sender, EventArgs e)
        {
            if (_fc == null || _fc.Dataset == null || !(_fc.Dataset.Database is AccessFDB))
            {
                MessageBox.Show("Can't rebuild index...\nUncorrect feature class !!!");
                return;
            }

            List <IClass> classes = new List <IClass>();

            classes.Add(_fc);

            SpatialIndexShrinker rebuilder = new SpatialIndexShrinker();

            rebuilder.RebuildIndices(classes);
        }
        void ShrinkSpatialIndices_Click(object sender, EventArgs e)
        {
            if (_dataset == null)
            {
                return;
            }

            List <IClass> classes = new List <IClass>();

            foreach (IDatasetElement element in _dataset.Elements)
            {
                if (element == null || element.Class == null)
                {
                    continue;
                }
                classes.Add(element.Class);
            }

            SpatialIndexShrinker rebuilder = new SpatialIndexShrinker();

            rebuilder.RebuildIndices(classes);
        }