public GlossaryPreferencesPanel()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Linking.Images.GlossarySmall.png");

            _glossaryPreferences = new GlossaryPreferences();
            checkBoxAutoLink.Checked = _glossaryPreferences.AutoLinkEnabled;
            checkBoxOnlyOnce.Checked = _glossaryPreferences.AutoLinkTermsOnlyOnce;
            checkBoxOnlyOnce.Enabled = _glossaryPreferences.AutoLinkEnabled;

            if (!DesignMode)
            {
                PanelName = Res.Get(StringId.GlossaryPrefName);
                checkBoxOnlyOnce.Text = Res.Get(StringId.GlossaryAutomaticallyLinkFirstTime);
                checkBoxAutoLink.Text = Res.Get(StringId.GlossaryAutomaticallyLink);
                groupboxAutoLink.Text = Res.Get(StringId.GlossaryAutomaticLinkOptions);
            }
        }
        public GlossaryPreferencesPanel()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Linking.Images.GlossarySmall.png");

            _glossaryPreferences     = new GlossaryPreferences();
            checkBoxAutoLink.Checked = _glossaryPreferences.AutoLinkEnabled;
            checkBoxOnlyOnce.Checked = _glossaryPreferences.AutoLinkTermsOnlyOnce;
            checkBoxOnlyOnce.Enabled = _glossaryPreferences.AutoLinkEnabled;

            if (!DesignMode)
            {
                PanelName             = Res.Get(StringId.GlossaryPrefName);
                checkBoxOnlyOnce.Text = Res.Get(StringId.GlossaryAutomaticallyLinkFirstTime);
                checkBoxAutoLink.Text = Res.Get(StringId.GlossaryAutomaticallyLink);
                groupboxAutoLink.Text = Res.Get(StringId.GlossaryAutomaticLinkOptions);
            }
        }