Ejemplo n.º 1
0
 private void OnNamespaceNameChanged(object sender, EventArgs e)
 {
     if (help2Collections.SelectedItem != null)
     {
         selectedHelp2Collection = Help2RegistryWalker.GetNamespaceName(help2Collections.SelectedItem.ToString());
     }
 }
Ejemplo n.º 2
0
        private void InitializeComponents()
        {
            selectedHelp2Collection = HtmlHelp2Environment.DefaultNamespaceName;

            help2Collections = (ComboBox)ControlDictionary["help2Collections"];
            help2Collections.SelectedIndexChanged += new EventHandler(this.NamespaceNameChanged);

            tocPictures         = (CheckBox)ControlDictionary["tocPictures"];
            tocPictures.Checked = HtmlHelp2Environment.Config.TocPictures;

            if (!Help2RegistryWalker.BuildNamespacesList(help2Collections, selectedHelp2Collection))
            {
                help2Collections.Enabled = false;
                tocPictures.Enabled      = false;
            }
        }
Ejemplo n.º 3
0
        private void InitializeForm( )
        {
            selectedHelp2Collection = HtmlHelp2Environment.DefaultNamespaceName;

            help2Collections.SelectedIndexChanged += new EventHandler(OnNamespaceNameChanged);
            tocPictures.Checked             = HtmlHelp2Environment.Config.TocPictures;
            cmbPadType.SelectedItem         = HtmlHelp2Environment.Config.PadType;
            chkCancelDefault.Checked        = HtmlHelp2Environment.Config.CancelDefaultBehaviour;
            chkEnableForKeywordHelp.Checked = HtmlHelp2Environment.Config.UseForKeywordHelp;

            if (!Help2RegistryWalker.BuildNamespacesList(help2Collections, selectedHelp2Collection))
            {
                help2Collections.Enabled = false;
                tocPictures.Enabled      = false;
            }
        }
Ejemplo n.º 4
0
        private static void LoadHelp2Config()
        {
            if (string.IsNullOrEmpty(defaultNamespaceName))
            {
                defaultNamespaceName =
                    Help2RegistryWalker.GetFirstMatchingNamespaceName("MS.NETFramework.v20*");
            }
            else
            {
                defaultNamespaceName = Help2RegistryWalker.GetFirstNamespace(defaultNamespaceName);
            }

            LoadConfiguration();

            if (!string.IsNullOrEmpty(config.SelectedCollection))
            {
                defaultNamespaceName =
                    Help2RegistryWalker.GetFirstNamespace(config.SelectedCollection);
            }
        }