private Gazetteer ShowEGaz()
        {
            if (Preferences.UseFloatingEGaz.Value)
            {
                if (_gazetteerContrib != null)
                {
                    ErrorMessage.Show("You will need to restart BioLink so that your preferences can be applied");
                    return(null);
                }

                if (_gazWindow == null)
                {
                    _gazWindow       = PluginManager.AddNonDockableContent(this, _gazetteer, _R("Gazetteer.Title"), SizeToContent.Manual, true);
                    _gazWindow.Owner = PluginManager.Instance.ParentWindow;
                    _gazWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                    _gazWindow.Closed += new EventHandler((s, e) => {
                        _gazWindow = null;
                    });
                }


                _gazWindow.Show();
                _gazWindow.BringIntoView();
                _gazWindow.Focus();
                return(_gazWindow.Control as Gazetteer);
            }
            else
            {
                if (_gazetteerContrib != null)
                {
                    PluginManager.EnsureVisible(this, "Gazetteer");
                    return(_gazetteerContrib.ContentControl as Gazetteer);
                }
                else
                {
                    ErrorMessage.Show("You will need to restart BioLink so that your preferences can be applied");
                    return(null);
                }
            }
        }