public AccessFDBDatasetExplorerObject(IExplorerObject parent, string filename, string dsname)
            : base(parent, typeof(AccessFDBDataset))
        {
            _filename = filename;

            if (dsname.IndexOf("#") == 0)
            {
                _isImageDataset = true;
                dsname          = dsname.Substring(1, dsname.Length - 1);
                _icon           = new AccessFDBImageDatasetIcon();
            }
            else
            {
                _isImageDataset = false;
                _icon           = new AccessFDBDatasetIcon();
            }
            _dsname = dsname;

            _dataset = new AccessFDBDataset();
            _dataset.ConnectionString = "mdb=" + _filename + ";dsname=" + _dsname;
            _dataset.Open();

            _contextItems           = new ToolStripItem[2];
            _contextItems[0]        = new ToolStripMenuItem("Spatial Reference...");
            _contextItems[0].Click += new EventHandler(SpatialReference_Click);
            _contextItems[1]        = new ToolStripMenuItem("Shrink Spatial Indices...");
            _contextItems[1].Click += new EventHandler(ShrinkSpatialIndices_Click);
        }
        public override void Refresh()
        {
            base.Refresh();
            this.Dispose();

            _dataset = new AccessFDBDataset();
            _dataset.ConnectionString = "mdb=" + _filename + ";dsname=" + _dsname;
            if (_dataset.Open())
            {
                foreach (IDatasetElement element in _dataset.Elements)
                {
                    base.AddChildObject(new AccessFDBFeatureClassExplorerObject(this, _filename, _dsname, element));
                }
            }
            _fdb = (AccessFDB)_dataset.Database;
        }